I installed the ubuntu operating system with VirtualBox in the Windows operating system.
It is not very convenient to operate ubuntu terminal in VirtualBox. For example, I want to copy some commands in Windows to ubuntu terminal for execution. Putty can support this cross-system copy and paste operation by default. VirtualBox cannot adjust the font size in the console, but Putty can easily modify the font in the console.
So how to use Putty to connect to the ubuntu system installed in the local virtual machine?
(1). The virtual machine network of ubuntu is set to NAT mode:
(2). Select advanced mode and turn on Port Forwarding:
Maintain the following rule:
(3). Open Putty and create a new login session. Enter Host name and enter the Host IP and Host Port maintained in VirtualBox as shown in the figure above. Select the connection type as SSH
(4). Install SSH Server in ubuntu of VirtualBox:
sudo apt-get install openssh-server
Start the SSH service:
Ensure that the SSH service is started successfully.
Then you can use Putty to log in to ubuntu installed in VirtualBox:
Recommended Posts