This commit is contained in:
ahmadbilalkhalid 2019-08-29 16:20:41 +05:00
parent 4bb647d595
commit f395af457a

View file

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