Catch Errno::ETIMEDOUT for SSH
This commit is contained in:
parent
776a1e446b
commit
c6c27c5e62
|
@ -168,7 +168,7 @@ module VagrantPlugins
|
||||||
Net::SSH.start(ssh_info[:host], ssh_info[:username], opts)
|
Net::SSH.start(ssh_info[:host], ssh_info[:username], opts)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
rescue Timeout::Error
|
rescue Errno::ETIMEDOUT, Timeout::Error
|
||||||
# This happens if we continued to timeout when attempting to connect.
|
# This happens if we continued to timeout when attempting to connect.
|
||||||
raise Vagrant::Errors::SSHConnectionTimeout
|
raise Vagrant::Errors::SSHConnectionTimeout
|
||||||
rescue Net::SSH::AuthenticationFailed
|
rescue Net::SSH::AuthenticationFailed
|
||||||
|
|
Loading…
Reference in New Issue