AbstractBrain Answers About us

Why do I get "connection timed out" when I ssh into a server?

Question

Cannot connect with ssh to a server: connection timed out

I have always used ssh to connect to a server, then, suddenly, I can no longer connect to it.

$ ssh username@server1.example.com
ssh: connect to host server1.example.com port 22: Operation timed out

Note that this is happening only on a specific server, while I can still connect with ssh to the others.

What can I do?

Answer

The reasons can be:

You can also try to connect to the remote machine with a different method (e.g. from a browser console, offered by many cloud providers) instead of using ssh.