Error Connection has been unexpectedly closed. Server sent command exit status 128. Cannot initialize SFTP protocol. Is the host running an SFTP server? OK Reconnect Help

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. 

  1. Edit the sshd_config file with your favorite editor. 

    nano etc/ssh/sshd_config 
  2. Locate the below line in the sshd_config file. 

    #Subsystem sftp /usr/lib/openssh/sftp-server
  3. You need to comment the line if it isn't already.  Now, add the below line to the configuration.

    Subsystem sftp internal-sftp
  4. Save the sshd_config file and restart ssh service.

    service sshd start

        Click on configure > SMTP to setup SFTP on Linux VPS with cPanel.

  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

Configuring your website in SmartFTP

Video Tutorial Get Linux VPS Hosting

Configuring your website in LeapFTP

Video Tutorial Get Linux VPS Hosting

Managing files in WinSCP

Video Tutorial Get Windows VPS Hosting

Uploading files using Adobe GoLive Upload

Important   Microsoft FrontPage Users Customers with Microsoft FrontPage extensions installed...