openssh sftp chrooting all users
Is there anyway to chroot all users to their home directories by default (for sftp sessions)?
That would be a good start. It might also be convenient for me to be able to exempt a few select users.
All the info I can see is for chrooting a specific user or group to a specific directory (rather than all users to a variable directory such as the users home).
Did you try:
Match User *
And maybe to exempt some:
Match User '*,!bob,!jim'
Not sure about "ChrootDirectory /home", try also:
"ChrootDirectory %h" <-- prefered for home not in /home
Looking at the manpage of sshd_config and ssh_config, it looks like it should work.
|All times are GMT -5. The time now is 08:09 AM.|