Question

ssh timeout and site connection problem

I can not access my droplet , via ssh , it says connection timeout. I have loginto web console. then enable disable, add ssh rule into firewall but nothing work. always show connection timeout. How to get rid of form this ?


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.

Accepted Answer

Hi @fftfaisal,

Looking at the answer given already and you confirming the firewall has been disabled, another possibility would be the firewall on your computer or your network’s router rules.

First, see if on your own personal computer you’ve allowed outgoing connections to port 22 (your SSH port) and if it’s blocked, allow them.

Secondly, if you are still experiencing these issues, try using another network to see if that would help out.

Regards, KFSys

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.

Hello, @fftfaisal

Could you please let me know if you’ve done any recent changes on the droplet like adding custom Firewall rules?

You can try to ssh with adding the -vvv argument as it will provide a more verbose output.

ssh -vvv IPaddress

You can also debug the ssh connection from the server itself by opening the ssh daemon on different port using this command:

/usr/sbin/sshd -p $add_port -ddd

an example command is:

/usr/sbin/sshd -p 2222 -ddd

You can then ssh from your machine to the server on the custom port using -p argument in the ssh command. It will show debug info and then the process will end once the connection either succeeds or fails.

Regards, Alex