mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
added 30 second timeout for SSH and SCP connect
This commit is contained in:
parent
f09034c0cb
commit
7b05faf596
2 changed files with 2 additions and 0 deletions
|
@ -52,6 +52,7 @@ module Fog
|
|||
raise ArgumentError.new(':key_data, :keys, :password or a loaded ssh-agent is required to initialize SSH')
|
||||
end
|
||||
|
||||
options[:timeout] = 30
|
||||
if options[:key_data] || options[:keys]
|
||||
options[:keys_only] = true
|
||||
#Explicitly set these so net-ssh doesn't add the default keys
|
||||
|
|
|
@ -46,6 +46,7 @@ module Fog
|
|||
raise ArgumentError.new(':key_data, :keys, :password or a loaded ssh-agent is required to initialize SSH')
|
||||
end
|
||||
|
||||
options[:timeout] = 30
|
||||
if options[:key_data] || options[:keys]
|
||||
options[:keys_only] = true
|
||||
#Explicitly set these so net-ssh doesn't add the default keys
|
||||
|
|
Loading…
Add table
Reference in a new issue