When you try to connect SFTP connection then you may receive this error also
Received unexpected end-of-file from SFTP server
Please refer to the following steps to fix this issue.
- Edit the sshd_config file with your favorite editor.
- Locate the below line in the sshd_config file.
#Subsystem sftp /usr/lib/openssh/sftp-server
- You need to comment the line if it isn't already. Now, add the below line to the configuration.
Subsystem sftp internal-sftp
- Save the sshd_config file and restart ssh service.
service sshd start
Click on configure > SMTP to setup SFTP on Linux VPS with cPanel.