In Windows, Putty connects to the Virtual Machine Ubuntu and puttyubuntu.

Source: Internet
Author: User

In Windows, Putty connects to the Virtual Machine Ubuntu and puttyubuntu.

The topic of this article is to use Putty in Windows to connect to Ubuntu in the virtual machine.

In fact, there have been a lot of articles to address such a problem. You can refer to and learn from blogs, but you still encounter many problems in your learning process. Close up your entire problem solving process.


Putty is a lightweight tool that can be downloaded directly without installation. You can click open and enter the information to log on to Ubuntu In the VM.


Problem 1: Openssh must be installed on Ubuntu.

Under Terminal,

sudo apt-get isatall openssh-server

You can. After the installation is complete, ssh should have been started. You can view it using ps-e | grep ssh. The ssh-related process is successfully displayed.


Problem 2: Disable the Ubuntu Firewall

In fact, I am not sure this is not a problem, because some articles say that the firewall has been disabled when Ubuntu is started.

Write down the Ubuntu firewall command:

sudo ufw disable

Problem 3: The network adapter connection mode of the virtual machine should use the bridge mode.



Finally, when using Putty to connect to Ubuntu, it is best to test whether the two ends can be pinged first.

Enter the Ubuntu IP address in Putty to log on to the VM.


Finally, using the VM Vim in Putty is good ,:




I used putty to connect to ubuntu in the virtual machine.

Try telnet and ssh, but make sure that the two of your ubuntu servers have enabled the service.
Can you ping your machine code?
 
How can I configure virtualbox so that putty can be used in windows to connect to Ubuntu?

1. Install the Virtual Machine and set the network connection mode of Linux to bridge in the virtual machine. This is not hard to solve.
2. Set the IP addresses of xp and Linux to a CIDR Block and enable the SSH service in Linux. Ubuntu has never been used. Please go to the next hundred times. How can I enable the ssh service and set the startup.
3. Use SSH to connect to the ubuntu client. By default, ubuntu does not allow root login. SSH may not work either. Use your new user name. You can try it.
4. The connection fails. You can close both the firewall of xp and ubuntu to see if it can be connected.
The above is my experience.
When I configure the zookeeper server, ssh can be connected, but Linux cannot connect to the xp database. I was bored and later found that it was a problem with the xp firewall. Some time ago, I failed to use the bridge and nat methods to access the Internet. I checked that it was the role of the linux firewall.
Therefore, there are usually no problems with these aspects. Good luck

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.