SFTP connection with subscription’s additional FTP user cannot be established with the similar error on connection attempt:
Note: SFTP stands for SSH File Transfer Protocol and uses SSH for establishing a connection and transferring the data.
FTP and FTPS connections are not affected by this issue, as they use different protocols and mechanisms.
Similar errors might be logged by the Journal:
# journalctl –since=”10m ago” | grep chrootsh
plesk-chrootsh: user with id=10000 and name=additional_user not found in chrooted passwd file
plesk-chrootsh: system error: No such file or directory
SFTP configuration for additional FTP users is not implemented in Plesk yet.
As a workaround, apply following steps
Warning: Such configuration was not officially tested. It might be changed automatically in case users are modified through Plesk.
Shell value of the additional user will not be synchronized with the main user.
Connect to the server via SSH.
Download and unpack the script:
# curl -LO https://plesk.zendesk.com/hc/article_attachments/360009752840/213912005_clone_shell.tar.gz
# tar xf 213912005_clone_shell.tar.gz
Run the script providing the names of additional users:
# ./213912005_clone_shell.sh examplecom1 examplecom2
Changing examplecom1 shell from /bin/false to /usr/local/psa/bin/chrootsh
Adding examplecom1 to the chrooted passwd file
Changing examplecom2 shell from /bin/false to /usr/local/psa/bin/chrootsh
Adding examplecom2 to the chrooted passwd file
Note: The additional user should have access to the
/directory in Plesk under Domains > FTP Access > additional_user