Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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!

share|improve this question

migrated from Dec 8 '09 at 17:02

This question came from our site for professional and enthusiast programmers.

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.


share|improve this answer
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.

share|improve this answer

Try reverse SSH tunnel

share|improve this answer

Your Answer


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