Skip to content

Commit 57b2bd7

Browse files
committed
Accept ssh-rsa key format
This is required when using our ssh key with bitwardon as ssh-agent Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
1 parent 12e9d98 commit 57b2bd7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/commands.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ def _ssh(hostname_or_ip, cmd, check, simple_output, suppress_fingerprint_warning
6666
background, decode, options) -> Union[SSHResult, SSHCommandFailed, str, bytes, None]:
6767
opts = list(options)
6868
opts.append('-o "BatchMode yes"')
69+
opts.append('-o "PubkeyAcceptedAlgorithms +ssh-rsa"')
6970
if suppress_fingerprint_warnings:
7071
# Suppress warnings and questions related to host key fingerprints
7172
# because on a test network IPs get reused, VMs are reinstalled, etc.

0 commit comments

Comments
 (0)