Ubuntu Server,多个同时远程用户

S.G*_*nim 4 server remote-desktop remote-x-session 16.04

我正在设置一个新的 Ubuntu 服务器 (16.04),最多 50 人可以同时访问。我已经按照教程使用 xfce 设置 XRDP,到目前为止一切都很好,问题是只能同时登录 10 个用户。任何人都可以帮忙。谢谢你。

Geo*_*sen 5

您需要使用以下命令增加默认允许的连接

/etc/ssh/sshd_config
Run Code Online (Sandbox Code Playgroud)

文件,添加行

MaxSessions 50
MaxStartups 50:30:100
Run Code Online (Sandbox Code Playgroud)

到那个文件。然后重新启动系统。

表单 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).
Run Code Online (Sandbox Code Playgroud)


S.G*_*nim 5

我已经找到了解决方案,我增加了 /etc/xrdp/sesman.ini 文件中的 MaxSessions。

谢谢乔治你的答案担任一个伟大的线索。