Connect to Ubuntu 12.0.4 and ubuntu12.0.4 In the VM through SSH

Source: Internet
Author: User
Tags free ssh pscp telnet program

Connect to Ubuntu 12.0.4 and ubuntu12.0.4 In the VM through SSH

Abstract: It mainly solves the problem that ssh remote Ubuntu cannot be used. The remote tool is putty, xshell and javasut12.0.4 can also be used, but this should have no effect.

I. Problems

Two days ago, I installed ubuntu with VMware. Because I often use command lines and switch between virtual machines and physical machines, it was inconvenient. I wanted to remotely run ubuntu in xp. A little unexpected. After a while, the solution was successfully debugged and the process was recorded.

When the connection starts, the connection is always unsuccessful, and the specific problem is fixed. Follow the steps to verify the problem step by step.

II. Specific Solution Process

1. Network

Since we want to remotely run the ubuntu system, is it possible to ping the two networks in one CIDR block first?

A) on a Windows computer, run cmd to open the command window, enter the ipconfig command, and view the Host IP address.

B) In ubuntu, press ctrl + alt + F1 to open the command terminal, enter the ifconfig command, and view the IP address of ubuntu.

C) then, on the ubuntu system terminal, type: ping + Windows Internet IP address, check whether ping is enabled, if not, check the network conditions, and whether the ping is performed in the same CIDR block or in the next step.

D) In the Windows Command window, type ping + ubuntu IP address, check whether the IP address is pinged, check the network condition if the IP address is not pingable, and check whether the IP address is in the same CIDR block or ping.

2. ssh service

Since sshserver is used for remote connection, what needs to be solved when the network is smooth is the ssh problem of the ubuntu system.

A) check whether the ssh service is installed.

On the ubuntu terminal command interface, type:

Ssh localhost

If the following prompt is displayed, it indicates that the installation has not been completed:

Ssh: connect to hostlocalhost port 22: Connection refused

B) install the ssh service

If the sshserver is not installed through the above steps, enter the following command to install it:

Sudo apt-getinstall-y openssh-server

C. Start ssh after installation.

Service ssh start

D) after the startup is complete, run the command ps-e | grep ssh to check the ssh status,

6455? 00:00:00 sshd

It indicates that the startup is successful.

Use putty to connect to ubuntu and solve the problem.



Environment:

Host OS: windows7 64bit

VMWare v9.0.2 build-1031769

Ubuntu 12.10 64bit

Preparations:

Verify that ssh is installed and started in Ubuntu as follows:

Sudo apt-get install openssh-server

If you have not installed ssh, it will be installed. If you are prompted that you have already installed ssh, run the following command:

Ps-e | grep ssh
If only ssh-agent is available, the ssh-server has not been started./etc/init. d/ssh start is required. If you see sshd, the ssh-server has been started.

The method is simple:

1. It is best to first restore the Virtual Machine network configuration to the default, [edit]-> [Virtual Network Editor]-> [Restore Default]

2. In the VM settings, click Network Adapter, select NAT for network connection mode, and click OK.

3. Restart the VM.

4. Open terminal and enter ifconfig to view the current Virtual Machine address (eth0 inet address)

5. Use putty to connect to port 22 of the address.


PuTTY is a free SSH/Telnet program. It can connect to a platform that supports SSH Telnet and automatically obtain the system Fingerprint code (Fingerprint) of the other party ). After the connection is established, all the communication content is transmitted encrypted, so you no longer have to be afraid to use Telnet to transfer data over the Internet or the company's internal network!

This is a small Linux Server Upload tool that does not require installation. It is mainly used for website development (at least I often use this tool, but I have never tried other tools ). A single file can be uploaded in the entire folder, which is fast. You can also enumerate and view Linux Server resources.

Putty is a free telnet, rlogin, and ssh client on Windows 32, but its functions are not inferior to commercial telnet tools. It is very easy to use to remotely manage Linux. Its main advantages are as follows:

◆ Windows 9x, NT, and 2000 run very well;
◆ Full support for ssh1 and ssh2;

The software included in putty:
PuTTy actually includes 6 software groups. The most commonly used software is putty.exe. The other software provided by PuTTY includes PSCP, PSFTP, PuTTYtel, Plink, Pageant, and PuTTYgen.


Putty: http://www.mycodes.net/130/681.htm



Reference website:


Http://www.linuxidc.com/Linux/2013-05/84819.htm


Http://www.linuxidc.com/Linux/2014-04/99728.htm



Using putty to upload files to remote Linux in windows:

Http://blog.csdn.net/god2469/article/details/9207487


Pscp:

Psftp:



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.