Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

There is a server in a private company that has no public IP, it's IP is 192.168.x.x.

And I know the company's public IP: 61.xx.xx.xx,

Is there any tool or method can let me login to a server which is behind LAN.

I don't want to install TeamViewer, because it's too slow.

I only want to have ssh access.

Thank you very much.

share|improve this question

1 Answer 1

If the public IP address has an SSH server and you have login credentials for it, you can set up SSH port forwarding.

In command line, you can do this:

ssh user@61.xx.xx.xx -L 22:192.168.x.x:22

This sets up a port forwarding from your own computer to the server in the internal network. user is the user account at the server having 61.xx.xx.xx address, and first 22 is the port on your local computer that you connect to when you want to connect to the server inside the private network.

ssh user@

connects you then to the other server. If you already have SSH server running on your local computer, you can use another port like 222, then you connect like this:

ssh -p 222 user@

You need to adjust the port in the first SSH command that sets up the tunnel.

If you need to set up tunneling with PuTTY, http://howto.ccs.neu.edu/howto/windows/ssh-port-tunneling-with-putty/ has clear instructions for that.

If there is no SSH daemon running on the 61.xx.xx.xx address, then you need to configure port forwarding on the router that handles traffic between public and private network. You need to configure port forwarding from some external port (61.xx.xx.xx:222 for example) to the internal IP 192.168.x.x:22.

  • Tero
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.