Plesk SFTP error: “Received unexpected end-of-file from SFTP server”

kumkumsharma

Administrator
Staff member
If you are getting below error while connecting to plesk SFTP server then you have check this article for more details.

Received unexpected end-of-file from SFTP server

The main reason of this error is incorrect value of Subsystem parameter in SSH configuration.

Code:
grep Subsystem /etc/ssh/sshd_config
Subsystem sftp /usr/libexec/openssh/sftp-server
You can follow below steps to resolve this issue:
  • Login to server via SSH.
  • Replace the value:
Code:
for i in $(grep Subsystem /etc/ssh/sshd_config | awk '{print $3}'); do sed -i 's|'"$i"'|internal-sftp|g' /etc/ssh/sshd_config; done
  • Restart the SSHD service:
Code:
service sshd reload
 
Top