]> gitweb.fluxo.info Git - leap/leap_cli.git/commitdiff
bail with message if no ecdsa key found
authorelijah <elijah@riseup.net>
Wed, 26 Jun 2013 19:26:19 +0000 (12:26 -0700)
committerelijah <elijah@riseup.net>
Wed, 26 Jun 2013 19:26:19 +0000 (12:26 -0700)
lib/leap_cli/commands/node.rb

index 7a8dc0efaf3a8d2d1df7571921ca0317ed952f69..2f4fab867f8f5ea28c0fd54705fcee4e8eb37bab 100644 (file)
@@ -197,6 +197,8 @@ module LeapCli; module Commands
     line = output.split("\n").grep(/^[^#]/).first
     if line =~ /No route to host/
       bail! :failed, 'ssh-keyscan: no route to %s' % address
+    elsif line =~ /no hostkey alg/
+      bail! :failed, 'ssh-keyscan: no hostkey alg (must be missing an ecdsa public host key)'
     end
     assert! line, "Got zero host keys back!"
     ip, key_type, public_key = line.split(' ')