• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Question Need additional SFTP Accounts

Trosten

New Pleskian
Hallo,

i need additional SFTP Accounts to recieve some secure files from our connected companys and i don't want to open FTP incl. a lot of passive ports

The chroot Folder is into the Domain environment /var/www/vhost/<Domain>/<Folder>
I have found some solutions but nothings works correctly

The last i try was these:
/usr/local/psa/admin/bin/chrootmng --create --source=/var/www/vhosts/chroot/ --target=/var/www/vhosts/<domain>/<Folder> --setup-user=<2nd Web User>

but that opens a whole access to root /

in the /etc/passwd i have this:
<2nd Web User>:x:10001:1003::/var/www/vhosts/<Domain>/<Folder>:/opt/psa/bin/chrootsh

and in /var/www/vhosts/<Domain>/etc/passwd
<2nd Web User>:x:10001:1003::/var/www/vhosts/<Domain>/<Folder>:/bin/bash

Have someone a complete solution to create new User for SFTP with a chrooted Folder?
 
My logfiles from /var/log/auth.log
Nov 29 15:29:16 server sshd[27154]: Accepted password for <2nd Web User> from xxx.xxx.xxx.xxx port 52725 ssh2
Nov 29 15:29:16 server sshd[27154]: pam_unix(sshd:session): session opened for user test1 by (uid=0)
Nov 29 15:29:16 server sshd[27154]: pam_env(sshd:session): Unable to open env file: /etc/default/locale: No such file or directory
Nov 29 15:29:16 server plesk-chrootsh[27167]: user with id=10001 and name=<2nd Web User> not found in chrooted passwd file
Nov 29 15:29:16 server sshd[27154]: pam_unix(sshd:session): session closed for user <2nd Web User>

but which chroot passwd file is the right one?
 
Last edited:
Back
Top