I have made below changes to /etc/limits file for limiting the number of logins for a particular user from ssh.
rajan L2
rajan is username here.
After making these changes I logged out from session and logged in again so that effect of change should take place.
But can still log in through more 2 than shell using ssh protocol.
I also has tried setting maxsession 2
in /etc/ssh/sshd_config
but didn't work out.
Can any body tell me what I am doing wrong?
Edit: I want maximum number of simultaneous SSH sessions to 5.