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 | |
parent | 4cf4b6f325df1a8eb1fdb57160cbf98f3f223be3 (diff) | |
download | leap_cli-fd50b3c7117b6d462bf581c02f75582469c57f03.tar.gz leap_cli-fd50b3c7117b6d462bf581c02f75582469c57f03.tar.bz2 |
bail with message if no ecdsa key found
Diffstat (limited to 'lib')
-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(' ') |