diff --git a/lib/train/transports/ssh_connection.rb b/lib/train/transports/ssh_connection.rb index b5ecbd6e..d8db499b 100644 --- a/lib/train/transports/ssh_connection.rb +++ b/lib/train/transports/ssh_connection.rb @@ -166,7 +166,7 @@ def uri RESCUE_EXCEPTIONS_ON_ESTABLISH = [ Errno::EACCES, Errno::EADDRINUSE, Errno::ECONNREFUSED, Errno::ETIMEDOUT, - Errno::ECONNRESET, Errno::ENETUNREACH, Errno::EHOSTUNREACH, + Errno::ECONNRESET, Errno::ENETUNREACH, Errno::EHOSTUNREACH, Errno::EPIPE, Net::SSH::Disconnect, Net::SSH::AuthenticationFailed, Net::SSH::ConnectionTimeout, Timeout::Error ].freeze