Maximum number of connections per ssh users can I have?

Posted June 10, 2017 22.5k views
Configuration ManagementUbuntu 16.04

Maximum number of connections per user connected by ssh I can have simultaneously from android devices?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hi @ernestoelunico

Are you talking about maximum number of SSH shells created? The default is 10, I think, on Linux.
You can change that with MaxSessions in /etc/ssh/sshd_config.

  • Can I expand this number?

    How many does the vps allow?

    • @ernestoelunico
      Yes, you can change it. I’m not sure if Linux has a limit, but I would guess it’s maximum number of open connections, which is about 65,000.
      But you would hit that limit way before, since each connection would require some amount of RAM, so your limit is probably available RAM.
      DigitalOcean doesn’t impose any limits on what you do with your droplet - as long as it’s legal and within the terms of agreement.