Use Putty in Windows to manage Ubuntu12.04 LTS and puttyubuntu12.04 installed in VMware Workstation Virtual machines

Source: Internet
Author: User

Use Putty in Windows to manage Ubuntu12.04 LTS and puttyubuntu12.04 installed in VMware Workstation Virtual machines

Use Putty to log on to and manage Ubuntu12.04 LTS installed in the VMware Workstation Virtual Machine in Windows.
1. Download putty software: http://www.chiark.greenend.org.uk /~ Download putty.exe from sgtatham/putty/download.html. You are not allowed to install the software;
2. view Ubuntu12.04 IP Address: Use ctrl + alt + t to open a terminal on Ubuntu12.04 LTS In the VMware Workstation Virtual Machine, and enter the ifconfig command on the terminal to view the IP address of the ubuntu system, find the inet address in eth0.
2. it is clear that you can ping a remote Ubuntu or virtual machine: Use cmd locally to enter the command line and ping the IP address in eth0. If you can ping it, continue to the next step. If not, set the network in the virtual machine to bridge and ping. If not, set the network in the ubuntu system.
3. if ping is enabled, open the putty software and enter the above IP address in the host Name or IP address column. If the logon fails due to timeout, the ssh-server service may not be enabled, run the following command on the ubuntu terminal to install the ssh-server Service:
Sudo apt-get install openssh-server
Run the following command to check whether sshserver is started:
Ps-e | grep ssh
If only ssh-agent is available, the ssh-server has not been started./etc/init is required. d/ssh start. If you see the ssh-agent and sshd services, it means that the ssh-server has been started and you can use putty to reconnect.
4. the default Port for putty connection is 22. If you want to change the connection Port of putty, modify the ssh-server configuration file and change Port 22 to another Port, remove the annotator to make it take effect.
The file is located in/etc/ssh/sshd_config. Here we can define the SSH service port. The default port is 22. You can define it as another port number, for example, 222.
It is best to restart the SSH service and log on with putty:
Sudo/etc/init. d/ssh resart
5. After the putty connection is successful, the system prompts: login as:, enter the username of ubuntu, and then prompt to enter the password. Then, you can use putty to operate the linux system on the virtual machine.

The advantage of using putty is that you can copy and paste the command, but in the linux System of the virtual machine, you cannot copy and paste.

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.