Report this

What is the reason for this report?

Error: Received unexpected end-of-file from SFTP server Error: Could not connect to server

Posted on April 10, 2021

I’ve been recieving this error for days now.

Error: Received unexpected end-of-file from SFTP server Error: Could not connect to server

On top of this, I can’t even access my SSH. After I type my root password it just closes.

I have no clue what to do. I’m using ubuntu on a VPS.



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!

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.

Hi @rizonrise,

How are you trying to enter your Droplet, is it from a normal SSH terminal/Putty Agent? Additionally, can you ping your droplet’s IP? Does it show packet loss or it is able to connect?

If any of the above are correct, your network might be stopped. First use your Droplet’s Web Console. You can find the web console from your control panel --> access.

In there use your root user and root password to enter. Once inside try and type in:

service network restart

Once it restarts, try to ping something:

ping 8.8.8.8

Regards, KFSys

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.