I am currently struggling with limiting number of processes for user which I called
I configured processes limit inside
/etc/security/limits.conf like this:
sandbox hard nproc 100
But if I want to connect to container as
sandbox user, ssh returns:
shell request failed on channel 0
So I logged in as
root and checked how many processes are running by
sandbox user, but it's less than 5.
So what could be preventing me to login through ssh?
Without setting limits ssh login for
sandbox user works ok.
Or is there any other way to prevent fork bomb attack?