1
1
Fork 0

changed zionvnc.sh

This commit is contained in:
David 2012-06-06 15:39:05 +02:00
parent 3105ac2a3e
commit 0e70baefec
1 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,9 @@
#!/bin/zsh
#xterm -geometry 100x10 -e ssh zion.aec.at -L 8900/localhost/5901 "sleep 05 && exit" &
ssh zion.aec.at -L 8900/localhost/5901 "sleep 05 && exit" &
hostname="zion.aec.at"
#xterm -geometry 10x10 -e ssh zion.aec.at -L 8900/localhost/5901 "sleep 05 && exit" &
ssh $hostname -L 8900/localhost/5901 "sleep 05 && exit" &
sleep 02
vncviewer localhost:8900
echo "killed ssh tunnel to $hostname and ended vnc session"