Question

putty showing remote side unexpectedly close network connection

Posted March 11, 2020 2.1k views
Initial Server Setup

i cannot connect to my new droplet which is a ubuntu 18. when i try to connect from windows computer using putty/mobaXterm it shows remote side unexpectedly close network connection.

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.

×
2 answers

why can’t i connect to droplet?

Hello, @lilboat

Can you please make sure that the droplet is online and that the ssh port is open or your IP address whitelisted?

Do you have UFW enabled on your droplet? You can check this using the following command:

sudo ufw status

If UFW is disabled, which it is by default, you’ll see something like this:

Output
Status: inactive

To enable UFW, use this command:

sudo ufw enable

To configure your server to allow incoming SSH connections, you can use this command:

sudo ufw allow ssh

Let me know how it goes.

Regards,
Alex

  • i have done what you said. but it is still showing remote side unexpectedly close network connection

    • Hello, @lilboat

      Could you please share the output of these two commands:

      sudo ufw status
      

      and

      sudo netstat -plunt | grep ssh
      

      You can also try to enable Keep-Alive in PuTTY or try to connect using different ssh client.

      Regards,
      Alex

Submit an Answer