sftp session disconnects right after passwd enter

Damien Miller djm at mindrot.org
Tue Jun 3 09:17:58 EST 2014


On Mon, 2 Jun 2014, Nico Kadel-Garcia wrote:

> Unfortunately, I also find the restrictions for SFTP to be burdensome.
> To set up multiple chroot cages for multiple users, one has to either
> make user specific sshd_config settings

that's incorrect

mkdir -p /chroot/user_a/sftp /chroot/user_b/sftp
chown user_a /chroot/user_a/sftp ; chown user_b /chroot/user_b/sftp

and in sshd_config:

ChrootDirectory /chroot/%u
Subsystem sftp internal-sftp -d /sftp





More information about the openssh-unix-dev mailing list