alte Session killen

This commit is contained in:
olli 2022-11-30 11:40:46 +01:00
parent ce9f168841
commit 52c9826bf1

View File

@ -13,6 +13,9 @@ function usage {
[ -z $userathost ] && usage [ -z $userathost ] && usage
[ -z $port ] && usage [ -z $port ] && usage
# kill existing Session
tmux kill-session -t x11vnc2ssh >/dev/null 2>&1
sshopts="-p $port -o BatchMode=yes -o ConnectTimeout=10 -o StrictHostKeyChecking=accept-new -o LogLevel=ERROR -o PreferredAuthentications=publickey $userathost" sshopts="-p $port -o BatchMode=yes -o ConnectTimeout=10 -o StrictHostKeyChecking=accept-new -o LogLevel=ERROR -o PreferredAuthentications=publickey $userathost"
g_echo "Testing SSH-Connection" g_echo "Testing SSH-Connection"