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.

Site Moderator
Site Moderator badge
August 31, 2022

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


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

Try DigitalOcean for free

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

Sign up