SFTP does not restrict user to the subscription's directory




  • Avatar
    Alex (Edited )

    I have rebuilt chroot template, which added '/usr/libexec/openssh/sftp-server' -> '/var/www/vhosts/chroot/usr/libexec/openssh/sftp-server' , but i still can't connect via SFTP.

    FileZilla shows - FATAL ERROR: Received unexpected end-of-file from SFTP server

    WinSCP - Cannot initialize SFTP protocol. Is the host running an SFTP server?

    I am able to connect to the chrooted env. via ssh, with restrictions in place:

    bash-4.2$ echo -n 'SFTP restrictions '; [[ -e /httpdocs ]] && echo 'active' || echo 'inactive'
    SFTP restrictions active

    sftp subsystem is set to:

    Subsystem sftp /usr/libexec/openssh/sftp-server

    Any suggestions?

    Thank you

    Comment actions Permalink
  • Avatar
    Francisco Garcia

    Hi Alex,

    Please check if as root user, the SSHd service has the subsystem SFTP set properly at /etc/ssh/sshd_config.

    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request