CentOS 7.9 Gnome自带的远程控制用的是Vino VNC Server.
设置方法: Setting->Sharing->Screen Sharing
注意:防火墙会默认会影响VNC连接, 可以手动设置打开VNC Server端口, 或者关闭防火墙服务.
使能成功后, 使用CentOS 7.9自带的Remote Desktop Viewer (Vinagre)可以通过VNC协议正确连接. 但是使用windows下的工具无法正确连接, 不同工具症状稍显不同:
TigerVNC viewer 1.12.0:
An unexpected error occorred when communicating with the server:
No matching security types
Real VNC Viewer 6.20.529:
Unable to connect to VNC Server using your chosen security setting.
Ether upgrade VNC Server to a more recent version from RealVNC, or select a weaker level of encryption.
MobaXterm 20.6:
Server did not offer supported security type!
解决办法是设置equire-encryption到false, 命令如下:
gsettings set org.gnome.Vino require-encryption false
注意还有一个坑:
>就是这个命令必需在图形界面下, 启Terminal后, 设置才可以生效, 远程登录运行不起作用的.