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

2019-08-20 19:10发布

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条回答
forever°为你锁心
2楼-- · 2019-08-20 19:23

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

查看更多
登录 后发表回答