diff options
author | Jonas Smedegaard <dr@jones.dk> | 2013-03-08 13:16:54 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2013-03-08 13:16:54 +0100 |
commit | 03b66fd27b701379af23c44c11bd6b1a408c5633 (patch) | |
tree | 6e5bbec0fd5508cb249c247c699c931e4db6b4b5 /localautossh | |
parent | 7458954fe4f223e31ab1be43321d4ea9c2d07375 (diff) |
Have autossh use BatchMode, to avoid confusing (and potentially useless) password prompts if pubkey auth fails.
Diffstat (limited to 'localautossh')
-rwxr-xr-x | localautossh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/localautossh b/localautossh index f49580c..e9d849d 100755 --- a/localautossh +++ b/localautossh @@ -55,5 +55,5 @@ fi #AUTOSSH_PATH=/usr/local/bin/ssh export AUTOSSH_POLL AUTOSSH_LOGFILE AUTOSSH_DEBUG AUTOSSH_PATH AUTOSSH_GATETIME AUTOSSH_PORT -autossh -2 -f -N -M 20000 -R $remoteport:localhost:22 "$remotehost" +autossh -2 -f -o BatchMode=yes -N -M 20000 -R $remoteport:localhost:22 "$remotehost" info "Remote help is on!" "Connection tunnel from $remotehost into this machine is now active." |