From fd50b3c7117b6d462bf581c02f75582469c57f03 Mon Sep 17 00:00:00 2001 From: elijah Date: Wed, 26 Jun 2013 12:26:19 -0700 Subject: bail with message if no ecdsa key found --- lib/leap_cli/commands/node.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/leap_cli/commands/node.rb b/lib/leap_cli/commands/node.rb index 7a8dc0e..2f4fab8 100644 --- a/lib/leap_cli/commands/node.rb +++ b/lib/leap_cli/commands/node.rb @@ -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(' ') -- cgit v1.2.3