-   Linux - Server (
-   -   Problem in remote ssh port using Port Forwarding (

arun5002 09-27-2012 12:36 AM

Problem in remote ssh port using Port Forwarding

These the scenerio im trying to work out

Office network
51.26.12.xx(static) -Nated -

home network


ssh -L 9580: root@51.26.12.xx

#netstat -tunelp | grep 9580
tcp 0 0* LISTEN 9580 61679 12768/ssh

Now i could find the remote local network 22) is listening to loop back interface on
port 9580 on my home pc.I try to login into local nated machine using ipaddress

But never seems to connect the remote local office machine.Any help ,whether i can achieve the remote office lan network using these scenerio

#ssh root@localhost -p 9580

evo2 09-27-2012 01:02 AM


sorry I don't know the answer to your question, but I can suggest an easier way to to to the machine from your home. On your home machine add the following to your .ssh/config

    ProxyCommand ssh -qax -W %h:%p 51.26.12.xx

Now you should be able to just ssh to "directly" from your home machine.



PS. If your ssh is too old to accept the -W, you can do a trick with netcat instead.

All times are GMT -5. The time now is 09:44 AM.