Operation Timeout - SSH connection on OS X 10.10

  • Posted August 5, 2014

ssh ssh: connect to host port 22: Operation timed out

Cannot connect both at work and at home, any ideas



I have the same problem.Did you solved it?

Submit an 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.

Reboot doesn’t help me but before that i had install whereami package. So i suspect and remove this package and reboot . It worked perfectly fine again.

Are you able to connect through the console in the DigitalOcean control panel? That error could mean anything from your droplet is not on to the SSH daemon isn’t running. Have you set up any firewalling/IPtables rules? Port 22, which is needed to connect via SSH, could be closed.

Use the control panel to connect to the droplet. Once logged in, run sudo netstat -plunt In the output, you should see a line like:

tcp        0      0    *               LISTEN      803/sshd        

If not, then the SSH daemon isn’t running. Try running sudo service ssh start If it does show up but you aren’t able to connect, then the most likely issue is that your firewall is blocking the port.

Well, I can SSH in now. Not sure what fixed it. I uninstalled and reinstalled OpenSSH, rebooted the machine several times, gave it some time, and tried accessing from another internet provider and it works now. Strange, because it WAS working on the internet/computer that I was originally working with, and then just stopped. Traceroute is giving back proper pings now.

I have the same problem.

It happened after changing some folder permissions for wp-content (WordPress) and adding an AllowUser wp-user to my sshd_config. I since went into the console (still have access on that end) and removed the AllowUser line from my sshd_config file, and have rebooted/power cycled a few times.

It would appear as though SSH is running, is there only suppose to be one instance of sshd running @asb? Because I appear to have two.

I should also add, I appear to have something funny going on with traceroute: erfans-imac:~ erfanv$ traceroute traceroute to (, 64 hops max, 52 byte packets 1 * * * 2 * * * 3 * * * 4 * * * 5 * * * 6 * * * 7 * * * 8 * * *

Maybe I need some more reboots…

I had the same issue. I had to log in using VNC Connection, which upon login immediately prompts me to reset root password. After that I could connect using ssh without problem. Don’t know whether it’s related to my not using a SSH key to connect. Could be a procedure update on the side of Ubuntu? I suggest digitalocean revise their setup guide for Ubuntu 14.04.

I had a similar issue twice with two different droplets. Rebooting the server helped in both cases.

Login to your DigitalOcean dashboard and access the droplet via the Console Access. If you’re able to login there, just enter the following command to reboot

sudo reboot

If you cannot login, then use the Power Cycle button instead.

Hope this helps someone :)