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.

KFSys
Site Moderator
Site Moderator badge
January 18, 2021
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

alexdo
Site Moderator
Site Moderator badge
January 16, 2021

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

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more