Hi everyone, I have got the next notification “Server unexpectedly closed network connection” when I tried to connect to my server. I tried to solve it using recommendation from this topic https://www.digitalocean.com/community/questions/putty-gives-server-unexpectedly-closed-network-connection-why but not solved it and still can’t to connect.
Please, write information about How to Solve it. Thank you in advance!
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!
Hi @mslobodian1962,
A PuTTY session left idle will disconnect at a time determined by the host server. Try enabling keep-alives in PuTTY. This causes PuTTY to send null SSH packets to the remote host periodically, preventing the session from timing out.
The PuTTY client can be configured to always establish a connection which will not time out due to inactivity. To create and save a new keep-alive connection, follow these steps:
If your connected sessions still time out, enter a lower number of seconds into the “Seconds between keepalives” value.
If this doesn’t help, try using your Recovery Console and allow your IP through the firewall to SSH to your Droplet.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.