it works now
This commit is contained in:
parent
22948a5b7c
commit
2b2d408e07
@ -5,6 +5,8 @@ Host *
|
|||||||
TCPKeepAlive yes
|
TCPKeepAlive yes
|
||||||
ServerAliveInterval 15
|
ServerAliveInterval 15
|
||||||
ServerAliveCountMax 3
|
ServerAliveCountMax 3
|
||||||
|
ControlMaster auto
|
||||||
|
StrictHostKeyChecking no
|
||||||
|
|
||||||
# Examples
|
# Examples
|
||||||
#
|
#
|
||||||
|
|||||||
@ -27,6 +27,7 @@ function debugopt () {
|
|||||||
case "$(awk "/^$1/ {print \$2}" ${DEBUGCONF})" in
|
case "$(awk "/^$1/ {print \$2}" ${DEBUGCONF})" in
|
||||||
2) echo -n '-v';;
|
2) echo -n '-v';;
|
||||||
3) echo -n '-vvv';;
|
3) echo -n '-vvv';;
|
||||||
|
*) echo -n '';;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -36,7 +37,8 @@ function dbg () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function connect () {
|
function connect () {
|
||||||
ssh -F "${SSHCONF}" "$(debugopt $1)" -o "ControlMaster auto" -o "StrictHostKeyChecking no" -S "$BASEDIR/var/$1.tksock" -N $1 '#tunnelkeeper' 2>&1 | dbg $1
|
bo="$(debugopt $1)"
|
||||||
|
ssh -F "${SSHCONF}" $bo -o -S "$BASEDIR/var/$1.tksock" -N $1 '#tunnelkeeper' 2>&1 | dbg $1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user