Windows 远程桌面连接 CentOS7 (xrdp)

时间:2023-03-10 03:03:56
Windows 远程桌面连接 CentOS7 (xrdp)

Windows 远程桌面连接 CentOS7 (xrdp)

前提: 
CentOS安装桌面,如果无桌面,请执行:

yum -y groups install "GNOME Desktop"
startx

方法:

配置源

yum install  epel* -y

安装xrdp

yum --enablerepo=epel -y install xrdp

启动xrdp并设置开机启动

systemctl start xrdp
systemctl enable xrdp

安装好了之后将防火墙关闭,或者开放3389端口

//开放3389端口
firewall-cmd --permanent --zone=public --add-port=/tcp
firewall-cmd --reload
======================或者关闭防火墙
//临时关闭
systemctl stop firewalld
//禁止开机启动
systemctl disable firewalld

打开远程桌面

Windows 远程桌面连接 CentOS7 (xrdp)

连接

Windows 远程桌面连接 CentOS7 (xrdp)

Windows 远程桌面连接 CentOS7 (xrdp)

连接完成!

参考:https://blog.****.net/sgrrmswtvt/article/details/81869208