


先日、CentOS 8にxrdpをインストールしWinPCからRemote Desktop接続してみましたが、X Display Manager Control Protocol(XDMCP)を有効にすればWindows用X Server Clientから接続できました。
Xディスプレイマネージャ
https://ja.wikipedia.org/wiki/Xディスプレイマネージャ
Configuration – 5.4.6. XDCMP Support
https://help.gnome.org/admin/gdm/stable/configuration.html.en#xdmcpsection
- XDCMPの有効
- gdmサービスの再起動
- Firewallの許可
[xdmcp]セクションにEnable=trueを追加します。
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | [root@centos8 ~]# cat /etc/gdm/custom.conf # GDM configuration storage [daemon] # Uncoment the line below to force the login screen to use Xorg #WaylandEnable=false [security] [xdmcp] [chooser] [debug] # Uncomment the line below to turn on debugging #Enable=true | 
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | [root@centos8 ~]# vi /etc/gdm/custom.conf [root@centos8 ~]# cat /etc/gdm/custom.conf # GDM configuration storage [daemon] # Uncoment the line below to force the login screen to use Xorg #WaylandEnable=false [security] [xdmcp] Enable=true [chooser] [debug] # Uncomment the line below to turn on debugging #Enable=true | 
| 1 | [root@centos8 ~]# systemctl restart gdm | 
デフォルトではポート177を使用するようです。サービスが登録されていました。
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | [root@centos8 ~]# cat /usr/lib/firewalld/services/xdmcp.xml <?xml version="1.0" encoding="utf-8"?> <service>   <short>XDMCP</short>   <description>The X Display Manager Control Protocol (XDMCP) allows to remotely log in to an X desktop environment from any X Window System compatible client.</description>   <port port="177" protocol="tcp"/>   <port port="177" protocol="udp"/> </service> [root@centos8 ~]# firewall-cmd --permanent --add-service=xdmcp success [root@centos8 ~]# firewall-cmd --reload success [root@centos8 ~]# firewall-cmd --list-all public (active)   target: default   icmp-block-inversion: no   interfaces: ens160   sources:   services: cockpit dhcpv6-client rdp ssh xdmcp   ports:   protocols:   masquerade: no   forward-ports:   source-ports:   icmp-blocks:   rich rules: | 
私はMobaXterm Proを愛用しているのでセッション登録だけで接続できました。
Free版もありますので試すにはいいと思います。
MobaXterm free Xserver and tabbed SSH client for Windows
https://mobaxterm.mobatek.net/

