Super User is a question and answer site for computer enthusiasts and power users. 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

In my home, I'm able to connect to my own computer via SSH when using my LAN IP. I can't connect using my public IP even when I disconnect the router and connect my computer directly to the modem. I restarted the SSH server to use port 4900 instead of 22 and still wasn't able to connect. I always get a connection refused error. I'm using Windows 7, with Putty as client and MobaSSH as server. I disabled Windows Firewall. What's going on?

share|improve this question
Please include new information as part of the original question. – bbaja42 Jun 17 '11 at 14:33

Are you using a firewall? That could be blocking port 4900. Also, if you try to connect using the router, you need to set up port forwarding on the router to your computer to access it using SSH.

share|improve this answer
It's very likely a firewall is eating the incoming traffic, or another security tool. Also Windows has different Zones for the firewall. Anyway I don't get the point of a ssh server for windows ;-) – user4711 Jul 25 '12 at 6:20

Depending on what system you are using (share more information on this please) this is probably a firewall issue.

share|improve this answer

Make sure the server is bound to all interfaces and not just the loopback interface.

share|improve this answer
hmm where do I find this? MobaSSH is based on cygwin so I have some Unix stuff in the preferences, even a sshd_config file. – Roberto Jun 17 '11 at 14:21
Do you have any ListenAddress directives in your sshd_config file? – Darth Android Jun 17 '11 at 14:31
it says ListenAddress – Roberto Jun 17 '11 at 14:59
That should be correct, then. ( is all interfaces). – Darth Android Jun 17 '11 at 15:19

Make sure that your system(in which the ssh server is running) is accessible to the system (the remote system which you are going to connect the ssh). If not access a VPN connection between two systems.

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.