3 ms·
And on a mac, this will work to create a tunnel over ssh, then start the default vnc viewer and finally close the connection when the vnc viewer is closed: ssh
by hmottestad 15y ago
And on a mac, this will work to create a tunnel over ssh, then start the default vnc viewer and finally close the connection when the vnc viewer is closed:
ssh -C -f -L 5901:localhost:5900 example.com sleep 10; open vnc://localhost:5901;
One line. Add is as an alias, configure ssh keys and you can connect to your home machine from anywhere securely.