diff options
author | elijah <elijah@riseup.net> | 2014-03-13 00:57:44 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2014-03-13 00:57:44 -0700 |
commit | 82a1295f3a41ace4be6398945dd53e9c300a6d11 (patch) | |
tree | 8d8f969ad1468c32f9fe4eb1ac5acbf950a7e7cb /lib/leap_cli/util | |
parent | 4e7e6b8dfe6363469f700260cf191a6fca6c202e (diff) |
various ssh key fixes (REQUIRES rebuilding vagrant nodes).
Diffstat (limited to 'lib/leap_cli/util')
-rw-r--r-- | lib/leap_cli/util/remote_command.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/leap_cli/util/remote_command.rb b/lib/leap_cli/util/remote_command.rb index 93d1bd1..847b056 100644 --- a/lib/leap_cli/util/remote_command.rb +++ b/lib/leap_cli/util/remote_command.rb @@ -35,6 +35,12 @@ module LeapCli; module Util; module RemoteCommand end yield cap + rescue Capistrano::ConnectionError => exc + # not sure if this will work if english is not the locale?? + if exc.message =~ /Too many authentication failures/ + at_exit {ssh_config_help_message} + end + raise exc end private |