Сервер Ubuntu, несколько одновременных удаленных пользователей

Я настраиваю новый сервер Ubuntu (16.04), к которому одновременно будет иметь доступ до 50 человек. Я следил за этим учебным пособием, чтобы настроить XRDP с помощью xfce, и все в порядке до сих пор, проблема в том, что одновременно могут регистрироваться только 10 пользователей. может кто-нибудь помочь в этом. спасибо.

1
задан 6 February 2017 в 12:12

1 ответ

Вам необходимо увеличить разрешенное по умолчанию соединение с помощью файла

/etc/ssh/sshd_config

, добавить в этот файл строки

MaxSessions 50
MaxStartups 50:30:100

. Затем перезапустите систему.

Форма 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).
4
ответ дан 23 May 2018 в 01:44
  • 1
    к сожалению, это не решило. – S.Ghanim 6 February 2017 в 13:53
  • 2
    @Melebius, спасибо, был доступ с моего мобильного в то время :). – George Udosen 6 February 2017 в 14:57
  • 3
    Я понял решение, я увеличил MaxSessions в файле /etc/xrdp/sesman.ini. спасибо @George, ваш ответ послужил отличным ключом. – S.Ghanim 6 February 2017 в 15:16
  • 4
    @ S.Ghanim вы должны принять его ответ вместо публикации " thanks " как отдельный ответ. – muru 6 February 2017 в 15:20
  • 5
    @muru это не ответ на мой вопрос, однако я поблагодарил его за ключ, который он дал, так что не так с этим !!!!!! – S.Ghanim 6 February 2017 в 15:42

Другие вопросы по тегам:

Похожие вопросы: