当前位置:   article > 正文

Linux: ssh : 同时可以有多少个会话,怎么设置_ssh 会话数

ssh 会话数

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

另外一个看自己产品内是否有专门的安全的插件来做这个事情。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/149142
推荐阅读
相关标签
  

闽ICP备14008679号