Question

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

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.


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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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