问题
I'm using both Redhat and CentOS. I previously wanted to jail a "Specific User" to its home. Then i got it by following this answer.
When the user (lets say, using FileZilla) use:
- Protocol:
FTP
.. it is fine!
But again there, when the user connects with:
- Protocol:
SFTP
(in the FileZilla setting)
.. the Jailing for that Specific User is NOT working anymore. Can still browse through.
How can i make it to have:
- In
vsFTPd
, jail a Specific User to its home when usingProtocol: SFTP
.
Thank you!
回答1:
Hi yes sftp works with ssh configuration on port 22, http:/thegeekstuff.com/2012/03/chroot-sftp-setup would make you jailroot the users. You have to modify ssh configuration file to jail root the users.
Thanks & Regards,
Alok
来源:https://stackoverflow.com/questions/18780716/linux-vsftpd-jail-a-specific-sftp-user-to-its-home