Skip to content

Instantly share code, notes, and snippets.

@rynmrtn
Created June 12, 2014 13:00
Show Gist options
  • Save rynmrtn/1f375550b85c0d38e5fb to your computer and use it in GitHub Desktop.
Save rynmrtn/1f375550b85c0d38e5fb to your computer and use it in GitHub Desktop.
Change the ULIMIT
1. In /etc/ssh/sshd_config add:
UsePAM yes
2. Now add this in at the end of: /etc/security/limits.conf
* hard nofile 65000
* soft nofile 65000
3. reload SSH
/etc/init.d/sshd restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment