Report this

What is the reason for this report?

can't ssh remotely, ssh port is closed from outside

Posted on September 2, 2014

I was able to ssh in remotely to my droplet yesterday. I didn’t change anything but I can’t do it today. I use the standard WordPress on Ubuntu 14.04 droplet.

I can ssh locally back to the server using the droplet console. I’ve tested from other IP (using http://www.infobyip.com/sshservertest.php ) and it doesn’t work either. Web server on port 80 works.

The firewall seems to be empty:

ipchains -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
 
Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
 
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

I also checked /var/log/kern.log when I tried to connect, nothing. I tried to restart the droplet, didn’t help.

I’m kind of lost what else should I try Is there a firewall front of my droplet which might block my ssh? Is there any other diagnostic you could recommend to locate the issue? I would appreciate any help.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Have you tried if your sshd server it’s running?

the second thing, if it’s running, ensure you are accesing with root or other user. If user is root, maybe you have configured that doesnt’t allow root access using ssh directly on sshd configs.

Yes, It just times out. sshd server is up and running and listening on port 22:

netstat -plant | grep :22
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      2851/sshd
tcp6       0      0 :::22                       :::*                   LISTEN      2851/sshd

Also, ssh from console works:

telnet localhost 22
Trying ::1...
Connected to localhost.
Escape character is '^]'.
SSH-2.0-OpenSSH_6.6.1p1 Ubuntu -2ubuntu2

The support say they can access ssh. It’s weird because I tried from different IPs and never works. If anyone keen to try it would you please check it and share the results? 178.62.45.184

What happens when you try to make the SSH connection? Does it just timeout?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.