Mutual Remote Desktop between CentOS and Windows
1. Windows Remote CentOS desktop (the premise is that CentOS is installed on the desktop, which is not minimized) 1. VNCVNC (Virtual Network Computing) is a software that can remotely control remote computers. It supports Remote Desktop Management in linux and is also suitable for other operating systems. Putty and SSH can only be used for remote management in command mode. Check whether vnc is installed on the local machine (vnc is not installed on CentOS 7 by default) rpm-q vnc-server. If the result is: package vnc is not installed, you need to install it. Server Configuration 1) install vncserver [plain] view plaincopy
- Yuminstall-yvnc-server
2) modify the configuration [plain] view plaincopy
- Vi/etc/sysconfig/vncservers
Go to # in the last two rows, and set the following Line1: "1: username" Line2: "... 1024*768..." 3) set the password [plain] view plaincopy
- Vncserver
4) Modify firewall [plain] view plaincopy
- Vi/etc/sysconfig/iptables
Add-a input-m state -- state NEW-m tcp-p tcp-dport 5901-j ACCEPT to start the VNC service using the vncserver command. The command format is "vncserver: desktop number ", the "desktop number" is represented by "Numbers". Each user needs to occupy one desktop.
The port number used by the VNC service is related to the desktop number. The VNC uses the TCP port starting from 5900. The corresponding relationship is as follows:
Desktop number is "1" ---- port number is 5901
Desktop number "2" ---- port number is 5902
Desktop number "3" ---- port number is 5903
......
5) restart the Firewall Service [plain] view plaincopy
- Serviceiptablesrestart
6) restart the vnc service [plain] view plaincopy
- Servicevncserverrestart
7) ping [Client ip] Verify connectivity client configuration 1) Open the vnc client, enter ip: 59012) Enter Password 2. Linux Remote Windows desktop 1. rdesktop client configuration 1) install rdesktop [plain] view plaincopy
- Yuminstall-yrdesktop
2) use the rdesktop command to connect to the Windows desktop [plain] view plaincopy
- Rdesktop-a16x.x.x.x: 3389-uusername-ppassword-f
Server Configuration 1) enable remote access 2) Cancel firewall Interception