Linux VSFTPD:监禁“特定SFTP用户";到家吗 [英] Linux VSFTPD : Jail a "Specific SFTP User" to its home?

查看:135
本文介绍了Linux VSFTPD:监禁“特定SFTP用户";到家吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我同时使用Redhat和CentOS.我以前曾想将特定用户"监禁到其家中.然后我通过遵循此答案

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.

当用户(例如,使用FileZilla)时使用:

  • 协议:FTP

..很好!

但是再次,当用户连接时:

But again there, when the user connects with:

  • 协议:SFTP (在FileZilla设置中)

..该特定用户的Jailing不再起作用.仍然可以浏览.

.. the Jailing for that Specific User is NOT working anymore. Can still browse through.

我如何使其具有:

  • vsFTPd中,使用Protocol: SFTP时将特定用户监禁到其住所.
  • In vsFTPd, jail a Specific User to its home when using Protocol: SFTP.

谢谢!

推荐答案

是的,sftp在端口22上使用ssh配置工作,http:/thegeekstuff.com/2012/03/chroot-sftp-setup将使您成为用户的用户.您必须修改ssh配置文件才能使用户入狱.

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

这篇关于Linux VSFTPD:监禁“特定SFTP用户";到家吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆