0

I'm having trouble ssh-ing to my computer. ssh localhost works fine. But when I use this site: http://www.infobyip.com/sshservertest.php to check my remote connection, it doesn't work. (I think the site is working because I've used it with success in the past). I've fiddled around with the ssh_config, sshd_config, and checked the ssh logs but can't figure out what to try next. Any thoughts?

(These haven't helped: local SSH works when using "localhost", but not using IP address)

  • What error message do you get when you try to ssh remotely? – jonbaldie Jan 16 '15 at 20:59
  • none i dont see anything in auth.log -- like failed attempts or anything – yoshi Jan 16 '15 at 21:04
  • Ok and I assume port 22 is open if you can connect locally? (netstat --listen) – jonbaldie Jan 16 '15 at 21:11
  • that interesting, netstat shows localhost:11211 but sshd_config is listening on 22. I tried changing the port number on the website above and connecting, but it didn't work – yoshi Jan 16 '15 at 21:18
  • Please post (redacted for security) sshd_config file and/or the output of netstat --listen. – Catherine MacInnes Jan 16 '15 at 21:46
1

This sounds like a firewall is blocking the communication. Since you can SSH to localhost, the service is up and running and it is on the correct port. There is not a problem with the service or sshd config.

Depending on the linux flavor you are using:

Red Hat / Centos run - service iptables stop

Debian / Ubuntu - look here: http://forums.debian.net/viewtopic.php?f=10&t=112759

If after you run through that, you test and it works, then you will need to open a port on your firewall.

This does not take into account hardware routers/firewalls that you may have from your internet provider.

|improve this answer|||||

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.