diff options
Diffstat (limited to 'python/remote.py')
| -rw-r--r-- | python/remote.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/python/remote.py b/python/remote.py index 525ec814..5a886f01 100644 --- a/python/remote.py +++ b/python/remote.py @@ -17,7 +17,6 @@ class Client: @classmethod def from_creds(cls, name: str): args = json.load((Path(".credentials") / f"{name}.json").open()) - print(cls) return cls(**args) @@ -39,6 +38,11 @@ class SftpClient(Client): transport = Transport((host, port)) if key is not None: pkey = RSAKey.from_private_key_file(Path.home() / ".ssh" / key) + else: + pkey = None + if host.endswith("gs.com"): + so = transport.get_security_options() + so.key_types += ("ssh-dss",) transport.connect(username=username, password=password, pkey=pkey) self.client = SFTPClient.from_transport(transport) if folder is not None: |
