1. Windows remote CentOS desktop (the premise is that CentOS is installed on the desktop, which is not minimized) 1. VNCVNC (VirtualNetworkComputing) 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 (CentOS7
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 linux remote desktop management 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
- Yum install-y vnc-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 the 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
- Service iptables restart
6) restart the vnc service.
[Plain]View plaincopy
- Service vncserver restart
7) ping [Client ip] verify connectivity client configuration 1) open the vnc client and enter ip: 59012) enter the password
II. Linux remote Windows desktop 1. rdesktopClient Configuration 1) install rdesktop
[Plain]View plaincopy
- Yum install-y rdesktop
2) use the rdesktop command to connect to win desktop
[Plain]View plaincopy
- Rdesktop-a 16 x. x: 3389-u username-p password-f
Server Configuration 1) enable remote access 2) cancel firewall interception