timeout = None,
retry = 0,
err_on_timeout = True,
- connect_timeout = 30,
+ connect_timeout = 90,
persistent = True,
hostip = None):
"""
'-o', 'NoHostAuthenticationForLocalhost=yes',
'-o', 'ConnectTimeout=%d' % (int(connect_timeout),),
'-o', 'ConnectionAttempts=3',
- '-o', 'ServerAliveInterval=30',
+ '-o', 'ServerAliveInterval=60',
'-o', 'TCPKeepAlive=yes',
'-l', user, hostip or host]
if persistent and openssh_has_persist():
args = ['ssh', '-l', user, '-C',
# Don't bother with localhost. Makes test easier
'-o', 'NoHostAuthenticationForLocalhost=yes',
- '-o', 'ConnectTimeout=30',
+ '-o', 'ConnectTimeout=90',
'-o', 'ConnectionAttempts=3',
- '-o', 'ServerAliveInterval=30',
+ '-o', 'ServerAliveInterval=60',
'-o', 'TCPKeepAlive=yes',
host ]
if openssh_has_persist():
args = ['scp', '-q', '-p', '-C',
# Don't bother with localhost. Makes test easier
'-o', 'NoHostAuthenticationForLocalhost=yes',
- '-o', 'ConnectTimeout=30',
+ '-o', 'ConnectTimeout=90',
'-o', 'ConnectionAttempts=3',
- '-o', 'ServerAliveInterval=30',
+ '-o', 'ServerAliveInterval=60',
'-o', 'TCPKeepAlive=yes' ]
if port:
# Don't bother with localhost. Makes test easier
'-o', 'NoHostAuthenticationForLocalhost=yes',
'-o', 'ConnectionAttempts=3',
- '-o', 'ServerAliveInterval=30',
+ '-o', 'ServerAliveInterval=60',
'-o', 'TCPKeepAlive=yes',
'-l', user, host]
if agent: