This commit is contained in:
ahmadbilalkhalid 2019-08-29 16:20:41 +05:00
parent 4bb647d595
commit f395af457a
1 changed files with 1 additions and 1 deletions

View File

@ -16,6 +16,6 @@ def setup(ceph_url, ssh_username, ssh_key_path):
cnopts = pysftp.CnOpts()
cnopts.hostkeys = None # disable host key checking.
with pysftp.Connection(host=ceph_url, username=ssh_username,
password="",private_key=ssh_key_path,
private_key=ssh_key_path,
cnopts=cnopts) as sftp:
sftp.get_r('/etc/ceph', '/etc/ceph', preserve_mtime=True)