This commit is contained in:
ahmadbilalkhalid 2019-08-29 16:14:26 +05:00
parent 81d7e796b2
commit b0c819d930

View file

@ -12,5 +12,6 @@ def ceph():
@click.option("--ssh_username", required=True)
@click.option("--ssh_key_path", required=True, help="For Example, ~/.ssh/id_rsa")
def setup(ceph_url, ssh_username, ssh_key_path):
with pysftp.Connection(host=ceph_url, username=ssh_username, private_key=ssh_key_path) as sftp:
with pysftp.Connection(host=ceph_url, username=ssh_username,
password="",private_key=ssh_key_path) as sftp:
sftp.get_r('/etc/ceph', '/etc/ceph', preserve_mtime=True)