赞
踩
sshd_config: MaxSessions
Specifies the maximum number of open shell, login or subsystem (e.g. sftp) sessions permitted per network connection. Multiple sessions may be established by clients that support connection multiplexing. Setting MaxSessions to 1 will effectively disable session multiplexing, whereas setting it to 0 will prevent all shell, login and subsystem sessions while still permitting forwarding. The default is 10.
pam: /etc/security/limits.conf
username hard maxlogins ‘number of max logins’
相关的ssh启用pam的配置:/etc/ssh/sshd_config:
UsePAM yes
另外一个看自己产品内是否有专门的安全的插件来做这个事情。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。