Question

ssh timeout and site connection problem

Posted January 15, 2021 288 views
Ubuntu 18.04

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 ?

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.

×
Submit an Answer
2 answers

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

  • thanks for your reply. I can not figure it out. I rebuild this droplet again and put site application content from my backup. now it is working both ssh and site. before rebuild droplet I trying vpn to access droplet it was working, not working from my ip. I dont know why. because I rebuild droplet and still i can access from my ip. I seems it was something iptable firewall block or not. But as i fixed it by rebuild droplet , now it is fine. thanks man.

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