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.
nano etc/ssh/sshd_config
- 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.
Looking to connect FTP over SSL/TLS in FileZilla? Please refer to CONNECT FTP OVER SSL/TLS IN FILEZILLA for more details.
Looking to connect FTP through a web-browser? Please refer to Access FTP through Web-browser for more details.
Looking to upload files using Dreamviewer? Please refer to upload using dreamviewer for more details.