Question

Digital Ocean VM Droplet Keeps on Disconnecting

Posted August 22, 2021 170 views
DevelopmentUbuntu 20.04Customer SuccessDigitalOcean DropletsBuilding on DigitalOcean

I created an Ubuntu VM Droplet and SSH'ed into it to do a couple of projects and test code, after almost every 5 to 10 minutes, the SSH Session periodically disconnects, why is it so? It is really frustrating, I can’t even do anything and can’t progress. Could the Digital Ocean Team address this? Why does it keep on happening, in my experience, only on Digital Ocean, I have never had this problem on any other cloud platform. Thank you

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
1 answer

It’s possible your SSH’s keepalive time means without activity within a timeframe, it disconnects.

If that’s the case, you might need to adjust the keepalive time in your ssh config

https://unix.stackexchange.com/a/446441/38383