Home
Sign Up
Sign In
Distributions
›
Ubuntu
›
Fedora
›
CentOS
中文资源站
›
网易开源镜像站
V2EX
›
Linux
求解如何限制 SSH -D 的同时登陆数?
ifishman
·
Mar 10, 2014
· 5236 views
This topic created in 4625 days ago, the information mentioned may be changed or developed.
尝试使用pam的pam_limit.so模块,配置`@usergroup - maxlogins 1`过后,该组下的同一账号依旧可以通过Bitvise工具两次登陆。 其实就是想限制SSH -D的同时登录数而已。Google了下,听说`limit.conf`只对tty会话有效,linux大神帮帮忙。
pam
Limit
ssh
3 replies
•
1970-01-01 08:00:00 +08:00
gihnius
Mar 10, 2014
1
直接在 ssh session 里面限制.
gihnius
Mar 10, 2014
2
用 limit.conf 也可以,在 sshd_config 里你启用 use_pam 吗?
ifishman
OP
Mar 10, 2014 via Android
3
@
gihnius
感谢提供建议,晚上检查下sshd_config,不过一般情况下不是默认使用了pam的么?另外在/etc/Pam.d/login中也启用了模块
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
1842 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 25ms ·
UTC 09:31
·
PVG 17:31
·
LAX 01:31
·
JFK 04:31
♥ Do have faith in what you're doing.
❯