SFTP Connection Error Received unexpected end-of-file from SFTP server

Hi, I was be able to connect my server via filezilla till today. I installed lamp and configured dns server after that I’m unable to access to my server via sftp. It say’s Received unexpected end-of-file from SFTP server

Show comments

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.

Fattur, I was able to solve my issue by logging into SSH and editing the sshd_config file:

sudo nano /etc/ssh/sshd_config

Then scroll down until you see this line:

# Subsystem sftp /usr/lib/openssh/sftp-server

Leave that line commented out, but underneath it write this:

Subsystem sftp internal-sftp

Then power cycle your server and the problem should be fixed. I’m now using the latest version of Filezilla without any issues.

        Hi, my answer is this: The DigitalOcean for security reasons if you made a droplet just right now or reseted root password and you want to login to the VPS via FTP Connection you should before connecting to your SSH Console and log in and then change your password(In your SSH you will see Enter Unix Password and then Enter New Password so you will see...) .
        Then with the new password you can log in via FTP...
         Hope this helps, my problem has been solved since I did this.

I had the same issue. It got resolved after I logged into console and changed the password from the generated one @ reset email.

See if it helps.