diff options
author | elijah <elijah@riseup.net> | 2013-06-26 12:26:19 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-06-26 12:26:19 -0700 |
commit | fd50b3c7117b6d462bf581c02f75582469c57f03 (patch) | |
tree | eccb6845fc4b966b8a35496691ad855cffa1abc4 /lib/leap_cli | |
parent | 4cf4b6f325df1a8eb1fdb57160cbf98f3f223be3 (diff) |
bail with message if no ecdsa key found
Diffstat (limited to 'lib/leap_cli')
-rw-r--r-- | lib/leap_cli/commands/node.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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(' ') |