How to use Putty to log in to ubuntu installed in VirtualBox

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

How to use Putty to log in to ubuntu installed in VirtualBox
How to use hanlp in ubuntu
How to configure TensorFlow use environment in Ubuntu
How to use dpkg command in Ubuntu system
How to configure /var/log/messages in Ubuntu system log
Use virtualbox to deploy ubuntu
How to install Helm in Ubuntu
How to install VirtualBox on Ubuntu 20.04
How to install mysql in Ubuntu 14.04
How to install mysql in Ubuntu 14.04
How to use SQLite in Python
How to add swap partition in Ubuntu
How to easily compile openJDK in Ubuntu
How to use and and or in Python
How to install cuda10.1 driver in Ubuntu
How to add users to Sudoers in Ubuntu
How to delete redundant kernels in Ubuntu
How to delete redundant kernels in Ubuntu
How to install ROS Noetic in Ubuntu20.04
How to set static IP in ubuntu14.04
How to modify software source in Ubuntu 7.10
How to view installed modules in python
How to open root account in Ubuntu20.04
How to hide applications in Ubuntu Dash?
How to use Prometheus to monitor your Ubuntu 14.04 server
How to use the round function in python
How to modify time zone and time in ubuntu
How to use the zip function in Python
How to use Nginx's map module on Ubuntu 16.04
How to install and use Docker on Ubuntu 20.04
How to install python in ubuntu server environment
How to install and use Curl on Ubuntu 18.04
How to install and use Composer on Ubuntu 18.04
How to install and use Wine on Ubuntu 18.04
How to use the format function in python
How to use Docker data volumes on Ubuntu 14.04
How to open the ubuntu system in win10
How to use code running assistant in python
How to install and use Composer on Ubuntu 20.04
How to install and use BaasBox on Ubuntu 14.04
How to use Jenkins to build automatically on Ubuntu
How to install and use PostgreSQL on Ubuntu 16.04
Introduction to the use of Hanlp in ubuntu
How to check the installed JDK on Ubuntu
How to install and use Docker on Ubuntu 16.04
How to upgrade to Ubuntu 20.04
Use supervisor in ubuntu
How to upgrade to Ubuntu 20.04
How to use LVM to manage storage devices on Ubuntu 18.04
How to create and use MongoDB backups on Ubuntu 14.04
How to install and use MySQL Workbench on Ubuntu 18.04
How to view detailed network routing table in Ubuntu
How to modify time zone and time in ubuntu system
Example of how to modify ip address in Ubuntu20.04
How to create a Python virtual environment in Ubuntu 14.04
ubuntu7.10 installed to 3D open
How to use python tuples
How to upgrade to Ubuntu 16.04 LTS
Mac uses vnc to remotely log in to the ubuntu16.04 desktop
How to install memcache and start it in ubuntu environment
How to compile and install PHP and Nginx in Ubuntu environment