I have a new Ubuntu server. I can ssh into it from within my LAN, but cannot from outside of my LAN. Firestarter has not been installed. OpenSSH is installed and running. Output from netstat -pant shows (among a few other things):

tcp6 0 0 :::22 :::* LISTEN 4593/sshd

Any clue as to how I can SSH in from off site?

Thanks in advance!

  • Does your router know that it should allow/redirect SSH traffic to your Ubuntu server? – andol Dec 8 '09 at 17:06

To do this you need to forward a port from your router to the computer you wish to connect to.

This involves setting a port for the router to listen on as well as an ip address and port to forward that traffic to.

So if you wish to use the default port of 22 then the rule would look something like the following.


  • Unless he's filtering or firewalling on the computer itself, it's probably set from a web interface to his router...just a guess that he's running something like a Linksys or Dlink or something like that, from teh sounds of it. – Bart Silverstrim Dec 8 '09 at 17:08
  • Sometimes port/address translation implies creating a filtering rule on the firewall to allow traffic to pass also. – Maxwell Dec 8 '09 at 17:25

You need to set up your router to forward TCP port 22 from your Internet link to your server's internal IP address.


Try reverse SSH tunnel

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy