Linux VSFTPD : Jail a “Specific SFTP User” to its home?

拈花ヽ惹草 提交于 2019-12-14 04:08:41

问题


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 using Protocol: 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!