Question

connection timed out issue

i am facing connection timed out issue while logging via ssh. i tried by resetting root password as well still there is the same issue. i have also checked the ssh service it is active.


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.

Hello @prakashmantaray,

You can check if the session timeout is set to a low value in the ssh config.

  1. sudo vi /etc/ssh/sshd_config

#ClientAliveInterval #ClientAliveCountMax

The ClientAliveInterval parameter specifies the time in seconds that the server will wait before sending a null packet to the client system to keep the connection alive.

ClientAliveInterval 1200

Once done, reload the OpenSSH daemon for the changes to come into effect.

  1. sudo systemctl reload sshd

We also have a tutorial on How to Troubleshoot SSH Connectivity Issues

https://docs.digitalocean.com/support/how-to-troubleshoot-ssh-connectivity-issues/

Regards

Hi @prakashmantaray,

When do you receive the timeout? Does the system show you the login prompt ?

If you aren’t already using SSH keys to connect to your Droplet, I would like you to check these links:

Hope that helps you,

Sergio Turpín