This commit is contained in:
Gordon Grant-Stuart 2023-05-19 23:23:11 +01:00
parent 31a6e82325
commit f2805e6be1
2 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,11 @@
# Everything in this section obeys the same rules as ~/.ssh/config, except for the Password, Watch and Debug directives # Everything in this file obeys the same rules as ~/.ssh/config, except for the Password, Watch and Debug directives
Host *
ExitOnForwardFailure yes
TCPKeepAlive yes
ServerAliveInterval 15
ServerAliveCountMax 3
# Examples # Examples
# #
# Host server1 # Host server1

View File

@ -31,7 +31,8 @@ function debugopt () {
} }
function dbg () { function dbg () {
[[ "$(awk "/^$1/ {print \$2}" ${DEBUGCONF})" =~ "[123]" ]] && logger -t tunnelkeeper read line
[[ "$(awk "/^$1/ {print \$2}" ${DEBUGCONF})" =~ "[123]" ]] && echo $line | logger -t tunnelkeeper
} }
function connect () { function connect () {