Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

My ssh server is set up on the standard port, and I forwarded the correct port in my router, but I'm still getting a "connection refused" message when trying to connect from the outside. I can connect from the inside just fine.

share|improve this question

If you can connect from your local network, Ubuntu most likely has nothing to do with it - it's a network configuration issue.

Many ISPs block incoming connections on "unusual" ports (or all incoming connections). Some ISPs have a setting in their control panel enabling/disabling port blocking.

As a diagnostic - try exposing port 80 (Apache running some webpage) - I'm almost sure you'll find it doesn't work either.

You can also fiddle with modem settings (how do you know you forwarded "the correct port"?), but this would only help after you triple-checked your provider doesn't block you.

share|improve this answer
+1 also just to add that the M-Lab set of tools are quite comprehensive, and can sometimes help with more obscure connection problems. – Tom Brossman Feb 24 '12 at 8:05

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.