SSH and port forward socks proxy

Solution 1:

I'm a little confused...you're saying you have a Linux web server and you want to connect to it via a SSH tunnel?

You can do this with the -L and -g switches to SSH. If you have a remote Linux system with port 22 open, and you're remote with two machines on site...call the server A and the two other machines you're remote with B and C...you can create a tunnel between A and B using -g and -L with the proper command line (like ssh -g -L 5000:remote-ip:80 yourname@remoteIP) on machine B to connect to machine A then on B point to localhost port 5000 to bring up A's website, and laptop C can connect to port 5000 with a web browser on machine B which will also bring up machine A's web page. -L handles port forwarding and mapping, -g allows other machines to access the tunnel aside from the host that is running SSH.

Does that help?

Remember that the encryption is only between A and B. Traffic between C and B is unencrypted.