summaryrefslogtreecommitdiff
path: root/lib/leap_cli
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-06-11 12:26:24 -0700
committerelijah <elijah@riseup.net>2013-06-11 12:26:24 -0700
commitffcaa2169d768747c32093ffa00becd7951df640 (patch)
treec2d134faa556826d2d9deddeb88cf75c70c84e22 /lib/leap_cli
parentf0c9d0a1fe8b19edf53f775dffb66057c0c9be12 (diff)
grab ecdsa ssh host keys, not rsa.
Diffstat (limited to 'lib/leap_cli')
-rw-r--r--lib/leap_cli/commands/node.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/leap_cli/commands/node.rb b/lib/leap_cli/commands/node.rb
index 1f94fe6..32e9d3f 100644
--- a/lib/leap_cli/commands/node.rb
+++ b/lib/leap_cli/commands/node.rb
@@ -187,7 +187,7 @@ module LeapCli; module Commands
def get_public_key_for_ip(address, port=22)
assert_bin!('ssh-keyscan')
- output = assert_run! "ssh-keyscan -p #{port} -t rsa #{address}", "Could not get the public host key from #{address}:#{port}. Maybe sshd is not running?"
+ output = assert_run! "ssh-keyscan -p #{port} -t ecdsa #{address}", "Could not get the public host key from #{address}:#{port}. Maybe sshd is not running?"
line = output.split("\n").grep(/^[^#]/).first
assert! line, "Got zero host keys back!"
ip, key_type, public_key = line.split(' ')