I'm setting up a new Ubuntu Server (16.04) to which up to 50 people will have access at the same time. I've followed this tutorial to setup the XRDP with the xfce and every thing is fine so far, the problem is that only 10 users can be logged in at the same time. can anyone help about that. thank you.

share|improve this question
    
What happens when another user tries to log in? Is it really a Ubuntu Server (without GUI)? – Melebius Feb 6 '17 at 8:14
    
no there is a GUI (thats why i setup the Xfce) , when 10 users login the eleventh login failes. – S.Ghanim Feb 6 '17 at 8:22
    
Add 'MaxSessions 50' to the '/etc/ssh/ssh_config' file that should fix it – George Udosen Feb 6 '17 at 8:45
    
Please see my updated answer. – George Udosen Feb 6 '17 at 10:46
    
Please sorry the change should have been in /etc/ssh/sshd_config NOT /etc/ssh/ssh_config. My apologies! – George Udosen Feb 6 '17 at 11:00

You need to need to increase the default allowed connection using the

/etc/ssh/sshd_config

File, add the lines

MaxSessions 50
MaxStartups 50:30:100

to that file. Then restart you system.

Form man sshd_config(5):

MaxSessions
         Specifies the maximum number of open shell, login or subsystem
         (e.g. sftp) sessions permitted per network connection.  Multiple
         sessions may be established by clients that support connection
         multiplexing.  Setting MaxSessions to 1 will effectively disable
         session multiplexing, whereas setting it to 0 will prevent all
         shell, login and subsystem sessions while still permitting for-
         warding.  The default is 10.

 MaxStartups
         Specifies the maximum number of concurrent unauthenticated con-
         nections to the SSH daemon.  Additional connections will be
         dropped until authentication succeeds or the LoginGraceTime
         expires for a connection.  The default is 10:30:100.

         Alternatively, random early drop can be enabled by specifying the
         three colon separated values ``start:rate:full'' (e.g.
         "10:30:60").  sshd(8) will refuse connection attempts with a
         probability of ``rate/100'' (30%) if there are currently
         ``start'' (10) unauthenticated connections.  The probability
         increases linearly and all connection attempts are refused if the
         number of unauthenticated connections reaches ``full'' (60).
share|improve this answer
    
unfortunately this didn't solve it. – S.Ghanim Feb 6 '17 at 9:53
    
@Melebius, thanks was accessing from my mobile at the time :). – George Udosen Feb 6 '17 at 10:57
    
I've figured out the solution, I've increased the MaxSessions in the /etc/xrdp/sesman.ini file. thank you @George your answer served as a great clue. – S.Ghanim Feb 6 '17 at 11:16
    
@S.Ghanim you should accept his answer instead of posting "thanks" as a separate answer. – muru Feb 6 '17 at 11:20
    
@muru it is not the answer to my question, however I thanked him for the clue he gave, so whats wrong with this!!!!!! – S.Ghanim Feb 6 '17 at 11:42
up vote 1 down vote accepted

I've figured out the solution, I've increased the MaxSessions in the /etc/xrdp/sesman.ini file.

thank you George your answer served as a great clue.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.