From 32e89e92600a361bdfe65ef34e3ac874515919f5 Mon Sep 17 00:00:00 2001 From: elijah Date: Sun, 9 Nov 2014 15:18:18 -0800 Subject: 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 --- lib/leap_cli/util/remote_command.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/leap_cli/util/remote_command.rb') diff --git a/lib/leap_cli/util/remote_command.rb b/lib/leap_cli/util/remote_command.rb index 2dd22ca..16d2b22 100644 --- a/lib/leap_cli/util/remote_command.rb +++ b/lib/leap_cli/util/remote_command.rb @@ -149,6 +149,9 @@ module LeapCli; module Util; module RemoteCommand opts[:verbose] = :error # suppress all the warnings about adding host keys to known_hosts, since it is not actually doing that. end end + if !node.supported_ssh_host_key_algorithms.empty? + opts[:host_key] = node.supported_ssh_host_key_algorithms + end return opts end -- cgit v1.2.3