ssh 无法登陆, 日志如下
pam_limits(sshd:session):could not sent limit for 'nofile'
原因是因为, /etc/security/limits.conf
nofile
大于 fs.nr_open
# cat /etc/security/limits.conf | grep nofile
* soft nofile 65535
* hard nofile 65535
# sysctl -a | grep fs.nr_open
fs.nr_open = 65500
调整 fs.nr_open
即可
# sysctl -w fs.nr_open=655000
转载请注明:爱开源 » pam_limits(sshd:session):could not sent limit for ‘nofile’