]> git.hoellein.online Git - zenbook_bin/commitdiff
-auth kann jetzt auch explizit angegeben werden master
authorMario Höllein <mhoellein@freenet.de>
Wed, 5 Feb 2020 14:03:36 +0000 (15:03 +0100)
committerMario Höllein <mhoellein@freenet.de>
Wed, 5 Feb 2020 14:03:36 +0000 (15:03 +0100)
getScreen

index 04e8d9fc859613a4e745a051fd43c77da741ebf6..02594ff073fe99550deee01b4c089e128d57941f 100755 (executable)
--- 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