The topic of this article is using putty to connect to Ubuntu in virtual machines under Windows.
In fact, for such a problem, already have a lot of articles, blog can reference and study, but in my learning process still encountered can be a lot of problems. Close-up of their entire process of solving the problem.
First of all, Putty is a very light tool, directly downloaded, almost without installation, click Open, fill in the information can be logged into the virtual machine in Ubuntu.
Need to solve the problem one: Ubuntu needs to install OpenSSH.
Under the terminal,
sudo apt-get isatall openssh-server
Can. Once installed here, SSH should have been started and can be viewed using ps-e|grep ssh. The associated process for displaying SSH is successful.
Problems to be solved two: Turn off Ubuntu's firewall
In fact, I'm not sure if this is a problem, because there are articles saying that when Ubuntu starts, the firewall is closed.
or write the command to close the Ubuntu firewall:
sudo ufw disable
problems that need to be addressed three: the network adapter connection for the virtual machine should use bridging mode.
Finally, when using putty to connect Ubuntu, it is best to test whether the two ends can ping.
You can log into the virtual machine by filling in the Ubuntu IP in the putty.
Finally, vim for using virtual machines in putty is good:
Windows Putty Connection Virtual machine Ubuntu