Get the App
SLTechnology News&Howtos  ›  Servers  › 

Windows 10 uses the RDP protocol to log in to remote CentOS 7.

Shulou Source: shulou.com Published: 2022-06-03 08:56:50 12月06日 Update

1. Introduction to related concepts:

RDP:Remote Desktop Protocol, remote Desktop Protocol

An open source implementation of xrdp:RDP that allows graphical control of remote systems

2. Demo environment:

Operating system

IP

Windows 10 1909 x64

192.168.0.100

CentOS 7.7 1908 x86_64

192.168.0.121

3. Install Xfce desktop environment: # yum grouplist # yum-y groupinstall Xfce

4. Install Epel source: # yum-y install epel-release

5. Install xrdp:# yum-y install xrdp

6. Configure xrdp:# vim / etc/xrdp/sesman.ini and modify the code KillDisconnected=false-- > KillDisconnected=1

Note:

(1) the value of the KillDisconnected parameter is modified so that every time Windows 10 disconnects, CentOS 7.7 shuts down the corresponding session process.

(2) the port number in the / etc/xrdp/xrdp.ini configuration file cannot be modified and can only be port 3389 of TCP. If you need to log in to a remote ECS server similar to Ali Cloud, you need to open port 3389 of TCP.

7. Set the default launch xfce4 desktop: # echo "xfce4-session" > ~ / .Xclients # chmod + x ~ / .Xclients

8. Start xrdp:# systemctl start xrdp # netstat-tunlp | grep xrdp

Note: listen to both ports 3389 and 3350 of TCP

9. Set self-boot: # systemctl enable xrdp

10. Windows 10 logs in to remote CentOS 7.7:

Win + r, enter mstsc in the run box, enter 192.168.0.121

11. Enter the user name and password for CentOS 7.7:

Note: if the remote server uses key authentication, it cannot log in, only for username and password authentication login

Tags: Login remarks desktop port input password server environment user user name system service authentication configuration operating system code parameters slogan and at the same time graphics Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Apple OPPO Reno macOS vpn