← Back to context

Comment by lizknope

3 years ago

My virtual server is $1.67 a month (buyvm.net)

My home firewall blocks all traffic except for incoming SSH from 3 IP addresses in the world. One of those is my virtual server.

If I'm in a hotel with my laptop I run the first command to set up an SSH tunnel to my "home" computer through the cloud virtual server. That listens on my laptop to port 8888 and forwards it through the cloud virtual server to my home computer's SSH daemon listening on port 22

ssh -X -f -C -L 8888:home.mydomain.com:22 -N user@cloud.mydomain.com

ssh -p 8888 user@localhost