Can't SSH over Internet

2

1

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?

Roberto

Posted 2011-06-17T14:01:54.603

Reputation: 233

Please include new information as part of the original question. – bbaja42 – 2011-06-17T14:33:25.460

Answers

2

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.

paradd0x

Posted 2011-06-17T14:01:54.603

Reputation: 7 771

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 ;-) – None – 2012-07-25T06:20:39.313

2

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

barbaz

Posted 2011-06-17T14:01:54.603

Reputation: 2 696

1

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

Darth Android

Posted 2011-06-17T14:01:54.603

Reputation: 35 133

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 – 2011-06-17T14:21:03.377

Do you have any ListenAddress directives in your sshd_config file? – Darth Android – 2011-06-17T14:31:32.593

it says ListenAddress 0.0.0.0 – Roberto – 2011-06-17T14:59:11.110

That should be correct, then. (0.0.0.0 is all interfaces). – Darth Android – 2011-06-17T15:19:21.090

1

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.

Avinash

Posted 2011-06-17T14:01:54.603

Reputation: 11