2012-03-23 59 views

回答

0

希望有人能拿出一个更好的答案,但这里的东西,将工作:一些其他的端口上启动第二sshd守护进程,说222在第二个sshd守护进程,使隧道,但使用AllowUsersAllowGroups选项只允许你的特定用户能够通过隧道。

0

在sshd config中使用“匹配”语句可以与用户或组一起使用,以启用或禁用特定选项。

在centos/rhel中,在/ etc/ssh/sshd_config文件的底部有一个示例。

# Example of overriding settings on a per-user basis 
Match User anoncvs 
     X11Forwarding no 
     AllowTcpForwarding no 
     ForceCommand cvs server