linux:
Method 1: Command line interface ssh
1, Redhat
2, Ubuntu
Method 2: Image desktop
Ubuntu :
Install ssh??
yum install openssh-server
vi /etc/ssh/sshd.conf
sudo service sshd start
Check whether the sshd service has been opened ps -e | grep sshd
netstat -an | grep 22? Check whether the port 22? is listening
In order to avoid having to manually start CentOS every time Turn on the sshd service, you can add the sshd service to the self-starting list, enter systemctl enable sshd.service
Permanently disable selinux (requires system restart):
vi /etc/selinux/config
SELINUX=enforcing is changed to SELINUX=disabled
Configuration method:
Under Ubuntu operating system:
Download the installation package from the realvnc official website
Download the deb package: https://www.realvnc. com/download/file/vnc.files/VNC-Server-6.3.2-Linux-x64.deb
Double-click to install.
Add key via commandsudo vnclicense -add WHJRK-UXY7V-Q34M9-CZU8L-8KGFA
Start service:sudo service vncserver- x11-serviced start
After startup, there will be an icon in the upper right corner of the desktop
Use RealVNC’s VNCview connection in the windows operating system to log in remotely
If there is an error:
Maybe 5900 port is occupied, here is a new port
VNC icon–>Options–>Conection port is changed to 5901