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

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

Here are the steps to fix the issue of sFTP – Received unexpected end-of-file – error when trying to connect to the sFTP Server.

First step is to edit your sshd_config file.

# nano /etc/ssh/sshd_config

Then scroll down until you see this line:

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

*  Do not worry if you don’t find this line, just add this code at the end of your sshd_config file.

SFTP Connection Error Received unexpected end-of-file from SFTP server
SFTP Connection Error Received unexpected end-of-file
Subsystem sftp internal-sftp

Now restart SSHD! and try to connect to your sFTP Server.

et voilà!