Example of Increasing SSH Open Files Limit
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:
1) # vi /etc/security/limits.conf
Add:
* soft nofile 65538
* hard nofile 65538
2) NOTE: Skip this step if you are running CentOS or Fedora.
# vi /etc/pam.d/login
3) Add the line:
session required /lib/security/pam_limits.so
4) 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
5) # vi /etc/ssh/sshd_config
6) Enable:
UsePrivilegeSeparation no
7) # service sshd restart