Skip to content

Commit

Permalink
LIU-427: Use key_filename rather than assume key is RSA.
Browse files Browse the repository at this point in the history
  • Loading branch information
myxie committed Nov 25, 2024
1 parent 6e21064 commit 98c0eb4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions daliuge-engine/dlg/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,7 @@ def createClient(host, username=None, pkeyPath=None):
client = SSHClient()
client.set_missing_host_key_policy(AutoAddPolicy())

pkey = (
RSAKey.from_private_key_file(os.path.expanduser(pkeyPath)) if pkeyPath else None
)
client.connect(host, username=username, pkey=pkey)
client.connect(host, username=username, key_filename=pkeyPath)
return client


Expand Down

0 comments on commit 98c0eb4

Please sign in to comment.