From: Mario Höllein Date: Wed, 5 Feb 2020 14:03:36 +0000 (+0100) Subject: -auth kann jetzt auch explizit angegeben werden X-Git-Url: https://git.hoellein.online/?a=commitdiff_plain;ds=inline;p=zenbook_bin -auth kann jetzt auch explizit angegeben werden --- diff --git a/getScreen b/getScreen index 04e8d9f..02594ff 100755 --- a/getScreen +++ b/getScreen @@ -5,4 +5,8 @@ if [ $1 = "" ]; then echo "xvnc_scanrechner scanhost" fi echo "Passwort für root auf $1 eingeben:" -ssh -t -L 5900:localhost:5900 root@${1} "x11vnc -localhost -nolookup -nopw -display :0 -auth \$(ps axuww | egrep 'Xorg.*-auth' | grep -v egrep | sed -e 's#^.*-auth *##' | awk '{print \$1}')" +if [ $2 != "" ]; then + ssh -t -L 5900:localhost:5900 root@${1} "x11vnc -localhost -nolookup -nopw -display :0 -auth $2 " +else + ssh -t -L 5900:localhost:5900 root@${1} "x11vnc -localhost -nolookup -nopw -display :0 -auth \$(ps axuww | egrep 'Xorg.*-auth' | grep -v egrep | sed -e 's#^.*-auth *##' | awk '{print \$1}')" +fi