Pseudo VPN Using SSH and X Forwarding

If you do not have a VPN setup, but you can connect to a gateway machine via ssh, then you can setup a pseudo VPN solution in the following manner. Use X forwarding when establishing your ssh connection, throw in a -C for compression to speed things up a little. An example: ssh -X -C user@gateway Now that you issued the -X option, any application you launch via the ssh terminal connection will have its X display information shown on the client computer, not the host. For instance, if you launch Firefox, it will open on your local machine. Doing so you can browse the web, and all traffic is sent and received from the host machine. 🙂

Leave a Reply