openssh升级后造成 登录 出现-bash: ulimit: open files

libin-linux / 2023-08-01 / 原文

现象: openssh升级后造成 登录 出现-bash: ulimit: open files

解决方案:

(1)

# vim /etc/pam.d/login

==>session    required     pam_limits.so

(2)

# vi  /etc/ssh/sshd_config

==>UseLogin yes

# service sshd restart