Commit a62f72a9 authored by clewsy's avatar clewsy

Added ssh timeout

parent 0a62dc59
......@@ -57,8 +57,9 @@ DEST="/dev/null" ## Default destination for output. Change to /dev/stdout with
## "-6" : IPV6
## "-o StrictHostKeyChecking=no" : Disable user verification for connecting to unknown (not yet authenticated) host.
## "-o UserKnownHostsFile=/dev/null" : Disable automatically saving "newly discovered" hosts to the default knownhosts file.
## "-0 BatchMode=yes" : Disable password prompts and host key confirmation requests.
SSH_OPTIONS="-4 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o BatchMode=yes"
## "-o BatchMode=yes" : Disable password prompts and host key confirmation requests.
## "-o ConnectTimeout=#" : Stop attempting the connection after # seconds.
SSH_OPTIONS="-4 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o BatchMode=yes -o ConnectTimeout=4"
##########Interpret options
while getopts 'qvh' OPTION; do ## Call getopts to identify selected options and set corresponding flags.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment