我想给SFTP访问一个特定的用户,但想jailroot它,使她的看法只限于她的主目录。 对于系统的其他用户来说,它应该保持正常。
可能吗?
sshd_config中的“匹配”function允许您根据组成员或用户名指定规则。
匹配用户乔 ChrootDirectory / storage / public ForceCommand / usr / libexec / sftp-server
你也可以看看MySecureShell: http ://mysecureshell.sourceforge.net
当然,看看rssh 。 这是一个很好的方法,我正在阅读有一天: http : //www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html