diff options
author | elijah <elijah@riseup.net> | 2014-11-04 15:40:27 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2014-11-04 15:40:27 -0800 |
commit | 2847c017ea184ef2a2b19e01ac38c2ac4b492c66 (patch) | |
tree | 786f65a975d3a1c8df38df271afe08e97104e226 /lib/leap_cli/commands | |
parent | c15d6ee970859f1e5775aec51e289b683fa3116c (diff) |
node init - privilege rsa keys over ecdsa-sha2-nistp256 keys, because screw nist p256.
Diffstat (limited to 'lib/leap_cli/commands')
-rw-r--r-- | lib/leap_cli/commands/node.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/leap_cli/commands/node.rb b/lib/leap_cli/commands/node.rb index f1e1cf8..190d348 100644 --- a/lib/leap_cli/commands/node.rb +++ b/lib/leap_cli/commands/node.rb @@ -196,7 +196,7 @@ module LeapCli; module Commands # get the public host key for a host. # return SshKey object representation of the key. # - # Only supports ecdsa or rsa host keys. ecdsa is preferred if both are available. + # Only supports ecdsa or rsa host keys. rsa is preferred if both are available. # def get_public_key_for_ip(address, port=22) assert_bin!('ssh-keyscan') @@ -223,7 +223,7 @@ module LeapCli; module Commands if rsa_key.nil? && ecdsa_key.nil? bail! "ssh-keyscan got zero host keys back! Output was: #{output}" else - key = ecdsa_key || rsa_key + key = rsa_key || ecdsa_key return SshKey.load(key[2], key[1]) end end |