Operation Timeout - SSH connection on OS X 10.10

  • Posted on August 5, 2014
  • darrenscAsked by darrensc

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

Cannot connect both at work and at home, any ideas


Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.

Hello there,

You can use the DigitalOcean recovery console and check if the droplet can be accessed without performing power cycle (usually this will be your last option).

The Droplet Console is a browser-based way to connect to Droplets. Instead of using ssh in a local terminal, you can use the Droplet Console in your preferred web browser.

The Droplet Console has a native-like terminal experience, so you can run commands on your Droplet from a familiar command-line interface. It also provides one-click SSH access to your Droplet without the need for a password or manual SSH key configuration.