SSH Tunnel?

Soldato
Joined
6 Jan 2005
Posts
3,633
Location
Cambridge
Hi, I'm not sure if this is possible, maybe someone here can help me out.

I've got a VPS server running CentOS and I want to be able to forward a port from that server to my computer.

So everything on theserver:8888 for example, I could get to through 127.0.0.1:8888, if that makes sense.

I think it can be done via PuTTY, but I can't figure it out and searching google hasn't helped me very much, I've tried many things but they didn't work.

Any would be greatly appreciated :)

Thanks,
Paul
 
not used putty for ages as I now have a linux desktop at work :)

in the connection your have ssh on the left expand this and then there should be an area to add a tunnel in the port box which is on its own i'd put 8889 and then in the box below put the ip of the server followed by port 8888 eg 192.168.1.1:8888 you may also want to enable compression to speed it up.

then in a browser goto 127.0.0.1:8889

if you use a name for the server rather than IP add it to hosts on localhost address.

I would suggest that you get familiar with Linux on a test machine before messing with a VPS box. theres no undelete option in Linux.
 
Last edited:
Thanks, I'll give that a try.

I've used Linux quite a lot and I've had the server for a long time, just never done any SSH tunneling, just websites and stuff, thanks though :)
 
ssh -L 8888:localhost:8888 user@host

the remote server will need to have port forwarding enabled in sshd_config
 
Back
Top Bottom