VMware Cloud Community
DwightKSchrute
Contributor
Contributor

How do you limit the number of concurrent ssh logins on an ESX 4.0 server?

I have a requirement to limit the number of concurrent ssh logins on an ESX 4.0 server, and I tried to edit the sshd_config file and put in a line for MaxSessions, but it informed me that it was a bad configuration option. I need to limit the ssh logins to just one per user. Any ideas or suggestions?

Reply
0 Kudos
1 Reply
DwightKSchrute
Contributor
Contributor

Okay, I have figured it out. I appears that if you go into /etc/security/limits.conf and add either usernames or groups, you can set the option there. I tried it out and it works wonderfully.

Reply
0 Kudos