Windows 10 远程桌面连接 CentOS 8

admin 2023年2月21日12:41:24评论12 views字数 890阅读2分58秒阅读模式

本文介绍了如何使用 windows10 远程连接虚拟机桌面(已使用远程连接工具连接了虚拟机,如 xshell),亲测可用,不懂的地方欢迎交流!

1、安装epel库

先查看下虚拟机上是否安装 epel 库
rpm -qa|grep epel
Windows 10 远程桌面连接 CentOS 8
我已经安装了,如果没有安装,使用下面的命令进行安装
yum install epel-release

2、安装 xrdp

执行下面的命令,安装 xrdp
yum install xrdp
会出现一些提示,不需要管是什么,全部输入 y 就行了。安装好的结果如下:
Windows 10 远程桌面连接 CentOS 8

3、安装 tigervnc-server

执行下面的命令,安装 tigervnc-server
yum install tigervnc-server
安装成功的结果如下:
Windows 10 远程桌面连接 CentOS 8

4、配置或关闭 SELinux

执行下面的命令查看 SELinux 状态
/usr/sbin/sestatus -v
Windows 10 远程桌面连接 CentOS 8
执行下面的命令,设置 SELinux 成为 permissive 模式
setenforce 0
然后再查看下 SELinux 状态
Windows 10 远程桌面连接 CentOS 8

5、关闭防火墙

执行下面的命令关闭 centos8 的防火墙(其他版本的可能不一样)
systemctl stop firewalld.service
然后执行下面的命令,查看下防火窗的状态是否关闭
systemctl status firewalld.service
Windows 10 远程桌面连接 CentOS 8

6、启动 xrdp 服务,并且设置为开机启动

执行下面的命令,启动 xrdp 服务
systemctl start xrdp
可以执行下面的命令,查看 xrdp 是否启动
systemctl status xrdp
Windows 10 远程桌面连接 CentOS 8
执行下面的命令,设置 xrdp 开机自启动
systemctl enable xrdp
Windows 10 远程桌面连接 CentOS 8

7 使用 windows10 连接

左下角搜索远程连接
Windows 10 远程桌面连接 CentOS 8
打开 Windows 远程连接,输入虚拟机的 ip
Windows 10 远程桌面连接 CentOS 8
在弹出的 xrdp 用户验证界面,输入连接的用户名和密码就可以了~

Windows 10 远程桌面连接 CentOS 8


来自:CSDN,作者:Faith_xzc

链接:https://blog.csdn.net/weixin_44480968/article/details/124811330

原文始发于微信公众号(天驿安全):Windows 10 远程桌面连接 CentOS 8

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2023年2月21日12:41:24
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   Windows 10 远程桌面连接 CentOS 8https://cn-sec.com/archives/1271314.html

发表评论

匿名网友 填写信息