]> gitweb.fluxo.info Git - leap/leap_cli.git/commitdiff
grab ecdsa ssh host keys, not rsa.
authorelijah <elijah@riseup.net>
Tue, 11 Jun 2013 19:26:24 +0000 (12:26 -0700)
committerelijah <elijah@riseup.net>
Tue, 11 Jun 2013 19:26:24 +0000 (12:26 -0700)
lib/leap_cli/commands/node.rb

index 1f94fe6a8da1552e50e75844229fee353e2a3da5..32e9d3fa4c578c9e6b9d8988598fcacf525eb5b3 100644 (file)
@@ -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(' ')