Unable to connect to the Plesk server via SFTP: Received unexpected end-of-file from SFTP server

Follow

Comments

3 comments

  • Avatar
    Haïtham Diaz

    Worked like a charm ! Thank you

    1
    Comment actions Permalink
  • Avatar
    TJ Rutkowski (Edited )

    I get an error on step 2 when I try this.  

    -bash: syntax error near unexpected token `do'

    So, I 

    sudo nano /etc/ssh/sshd_config

    and commented out the following line

    Subsystem   sftp    /usr/libexec/sftp-server

    then added

    Subsystem sftp internal-sftp

    And restarted the service. SFTP is working for Plesk users.

    1
    Comment actions Permalink
  • Avatar
    Stef Graf (Edited )

    In my case, changing it to internal-sftp worked but broke the CHROOT configuration.

    The correct answer was to leave the Subsystem with the original value and instead rebuild the chroot template as described in this article https://support.plesk.com/hc/en-us/articles/115002140654

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request