From 03b66fd27b701379af23c44c11bd6b1a408c5633 Mon Sep 17 00:00:00 2001
From: Jonas Smedegaard <dr@jones.dk>
Date: Fri, 8 Mar 2013 13:16:54 +0100
Subject: Have autossh use BatchMode, to avoid confusing (and potentially
 useless) password prompts if pubkey auth fails.

---
 localautossh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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."
-- 
cgit v1.2.3