I have a server and I have to allow remote SSH to users for some purpose. I want to tighten up the shell against any kind of fork bomb on it. How can I do this ? I’m expecting a solution based on restricting the CPU usage of a particular user.
Share
This is what you are looking for
http://linux.die.net/man/5/limits.conf
You can do something like
Thereby limiting both the CPU usage and the number of processes the
remote_usercan create.