Skip to content

Commit 814a2fe

Browse files
committed
ssh: supports for ssh client 7.0+
By using PubkeyAcceptedKeyTypes instead of PubkeyAcceptedAlgorithms. It was renamed in ssh 8.5, but the old name is still usable for backward compatibility. Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
1 parent c8182a4 commit 814a2fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def _ssh(hostname_or_ip, cmd, check, simple_output, suppress_fingerprint_warning
6868
background, decode, options, multiplexing) -> Union[SSHResult, SSHCommandFailed, str, bytes, None]:
6969
opts = list(options)
7070
opts.append('-o "BatchMode yes"')
71-
opts.append('-o "PubkeyAcceptedAlgorithms +ssh-rsa"')
71+
opts.append('-o "PubkeyAcceptedKeyTypes +ssh-rsa"')
7272
if suppress_fingerprint_warnings:
7373
# Suppress warnings and questions related to host key fingerprints
7474
# because on a test network IPs get reused, VMs are reinstalled, etc.

0 commit comments

Comments
 (0)