Increasing ssh Open Files Limit for C-shell (csh) Sessions
Note: This will increase the limit of the number of concurrent open files for RedHat System 8 and above, plus Redhat Enterprise ES version 3 and various flavors of Linux.
Sign on as root and perform the following:
-
# vi /etc/security/limits.conf
Add:
* soft nofile 32768* hard nofile 32768
- NOTE: Skip this step if you are running CentOS or Fedora.
# vi /etc/pam.d/login
Add the line:
session required /lib/security/pam_limits.so
- NOTE: Skip this step if you are running CentOS or Fedora.
# vi /etc/pam.d/sshd
Add the line:
session required /lib/security/pam_limits.so
-
# vi /etc/ssh/sshd_config
Enable:
UsePrivilegeSeparation no
-
# service sshd restart