diff options
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(' ') |