diff options
author | elijah <elijah@riseup.net> | 2014-11-09 15:18:18 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2014-11-09 15:18:18 -0800 |
commit | 32e89e92600a361bdfe65ef34e3ac874515919f5 (patch) | |
tree | 75e91f04ce70e6dad0826f8db057d1a9ee9bc64f /lib/leap_cli/commands | |
parent | 38354dca9237c67668bf2510b3b43d8b2dbd5844 (diff) |
make sure to specify HostKeyAlgorithms for ssh and rsync. this is needed because otherwise you can't connect to a server that has ecdsa host key if all you have is an rsa key host key. closes bug #6337
Diffstat (limited to 'lib/leap_cli/commands')
-rw-r--r-- | lib/leap_cli/commands/shell.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/leap_cli/commands/shell.rb b/lib/leap_cli/commands/shell.rb index 2138e9d..a7a0d85 100644 --- a/lib/leap_cli/commands/shell.rb +++ b/lib/leap_cli/commands/shell.rb @@ -62,6 +62,9 @@ module LeapCli; module Commands else options << "-o 'StrictHostKeyChecking=yes'" end + if !node.supported_ssh_host_key_algorithms.empty? + options << "-o 'HostKeyAlgorithms=#{node.supported_ssh_host_key_algorithms}'" + end username = 'root' if LeapCli.log_level >= 3 options << "-vv" |