10

I use ubuntu server 10.04 on a fairly good machine, with 2.40 dual-core processor and 2GB RAM.

My users login with ssh or samba. I have setup LDAP with PAM to sync user accounts between unix and samba. When I allowed about 90 users to login over ssh at once the server refused login for many users. I am using dropbear as ssh server. Even samba logins failed for many users. I need to allow at least 100 users to login at once. Is there anyway to do this?

Jorge Castro
  • 70,934
  • 124
  • 466
  • 653
nixnotwin
  • 4,993
  • 17
  • 53
  • 71
  • 9
    Out of curiosity, why did you choose a non default ssh server ? Also please add the specific error message that you get when an user attempts to login. – João Pinto Feb 04 '11 at 15:58
  • Did you check both the sshd,samba and pam related logs for more details ? – João Pinto Feb 04 '11 at 16:04
  • 1
    Open ssh server has strict limits as to the number of users allowed to login at one time. I tried increasing the number to 50, the open ssh daemon didn't load at reboot. So I removed it and installed dropbear, and it did work well when there were about 40 users online at once. Eeven samba worked fine when there were around 50 users online. But recently the number of users increased, and I faced the above mentioned issue. – nixnotwin Feb 04 '11 at 17:29
  • I am wondering what 100 users have to do on one server. If every user gets a shell and so on it might be a memory problem. Please watch for memory usage. Can you specify what every user should be able to do with the system? –  Feb 05 '11 at 22:15
  • 2
    It's students learning bash programming over ssh, and stroing their documents and files from Windows machines on the "same" samba server. – nixnotwin Feb 06 '11 at 13:28
  • I wonder if it would help to add a second ssh listener/daemon to another port? E.g., dropbear + opensshd on an alternate port (specified in `/etc/ssh/sshd_config` by default) . – belacqua Mar 05 '11 at 00:12
  • 6
    What number did you try to increase to 50? I see nothing in 'man sshd_config' or 'man sshd' that suggests there is a limit of any kind imposed by openssh-server. – SpamapS Mar 21 '11 at 20:27
  • @nixnotwin, can you supply some updated information as per the previous comment in order that we can get this question answered/closed? – Caesium Dec 15 '11 at 23:18
  • For ssh I edited `sshd_config` file. And I bought a poweredge server (my earlier setup was a desktop pc). Abandoned LDAP and used just `libpam-smbpass` to sync unix accounts and samba accounts. And its working fine now. – nixnotwin Dec 16 '11 at 17:35

1 Answers1

6

I think what you're looking for is in the man sshd_config, the MaxSessions and MaxStartups fields

http://www.manpagez.com/man/5/sshd_config/

Justin Andrusk
  • 4,036
  • 2
  • 19
  • 19