Connecting to the Linux system in the virtual machine through vnc on windows

https://blog.csdn.net/hwssg/article/details/38140611


First, install vnc in the virtual machine.

The VNC connection should be enabled in the virtual machine's settings.


Then enter the command vncserver, you can see that there is a serial number.



Then open the vnc software under windows

Enter the IP here, and after many attempts, it shows that the connection was refused by the host computer. unable to connect.

At this time, the port number is added after the IP, and the port number is 5900 set in the above figure, but it still cannot be connected.

The correct way of writing is IP plus port number, but the port number here is not the set 5900, but the VNC serial number in the virtual machine is added on the basis of 5900, as shown in 1 in the first picture. The correct spelling is IP: 5901 (for example, my machine fills in 10.136.7.174:5901)

At this point, click OK, enter the password, the connection is successful, and the linux interface in the virtual machine can be displayed under Windows to operate.


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324592571&siteId=291194637