SSH tunnel setup

SilverTongueDevil

Honorable
Nov 7, 2013
27
0
10,530
I'm testing how to set up an ssh tunnel, but when I do it through putty the prompt needs to be up and won't work closed. Any ideas on how to set this up?

I have another program working on the VPS, so I cannot setup OpenVPN as much as I would like. I need to set this up as I frequently access files/login in public areas as I don't have any other choice.

The command I used in prompt ssh -D 1067 -f -C -q -N user@MY_VPS_IP

Using Ubuntu 16.04
 
Solution
When you tunnel, you are using PuTTy to let you see addresses from another network.

So in PuTTy, you go under "SSH" and then "Tunnels." Under "add new forwarded port" choose your port, like 3000, enter it by "source port," click "dynamic" and click "Add." Then go back under "session" and enter the host or ip address of the system you are tunneling through.

Login and leave PuTTy open so that your tunnel stays open.

On your workstation, open Firefox, go under "options" then under "Network Proxy" click "settings" and change to "manual proxy configuration."

By SOCKS host, enter 127.0.0.1 and port 3000 and click "ok."

Now Firefox will use your tunnel and you get to addresses on the other side of the tunnel.

Don't forget to change...
When you tunnel, you are using PuTTy to let you see addresses from another network.

So in PuTTy, you go under "SSH" and then "Tunnels." Under "add new forwarded port" choose your port, like 3000, enter it by "source port," click "dynamic" and click "Add." Then go back under "session" and enter the host or ip address of the system you are tunneling through.

Login and leave PuTTy open so that your tunnel stays open.

On your workstation, open Firefox, go under "options" then under "Network Proxy" click "settings" and change to "manual proxy configuration."

By SOCKS host, enter 127.0.0.1 and port 3000 and click "ok."

Now Firefox will use your tunnel and you get to addresses on the other side of the tunnel.

Don't forget to change the proxy setting back when you are done.

The advantage of using Firefox is you can still use another browser (i.e. Chrome) to hit addresses on your side of the tunnel.
 
Solution