From 82a1295f3a41ace4be6398945dd53e9c300a6d11 Mon Sep 17 00:00:00 2001 From: elijah Date: Thu, 13 Mar 2014 00:57:44 -0700 Subject: various ssh key fixes (REQUIRES rebuilding vagrant nodes). --- lib/leap_cli/util/remote_command.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/leap_cli/util') 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 -- cgit v1.2.3