I have ssh set up so my users can only access sftp and port forwarding, how can I limit the number of concurrent logins on a per user basis?
sshd_config file, I have
UsePAM set to yes, and in
/etc/security/limits.conf file, I have:
username - maxlogins 1
I also tried:
username hard maxlogins 1
Neither of these works and the users can still log in multiple times.