Question

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

Posted April 10, 2021 97 views
Ubuntu

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.

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

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