Windows 7 remote login ubuntu12.04 (PuTTY implementation)

Source: Internet
Author: User
Tags ssh server

I have read some materials before, saying that ubuntu is installed with ssh by default, and I installed an ssh by myself. After installation, I can see that the ssh service has been started. In short, the goal is to hopeThere is an ssh service,And startedIf it is not installed, first install one. if the service is not started, start it. Because my service has been started, I did not consider this issue. The information I see on the Internet about starting the ssh service is:

wahaha@ubuntu-K55VD:~$ /etc/init.d/ssh start
To install an ssh server, enter ssh on the terminal and press the Tab to complete the installation.

wahaha@ubuntu-K55VD:~$ sudo apt-get install sshssh                     ssh-contact-service     ssh-krb5ssh-askpass             sshfp                   sshmssh-askpass-fullscreen  sshfs                   sshmenussh-askpass-gnome       sshfs-dbg               sshpassssh-contact             sshguard                sshuttlessh-contact-client      ssh-import-id           wahaha@ubuntu-K55VD:~$ sudo apt-get install ssh-contact-service
Then I enter the password for installation.
[Sudo] password for wahaha: Reading the package list... the dependency tree of the software package being analyzed is reading status information... the following additional software packages are installed: openssh-server ssh-import-id: rssh molly-guard openssh-blacklist-extra monkeysphere the following [new] software packages will be installed: openssh-server ssh-contact-service ssh-import-id: 0 software packages have been upgraded, 3 new software packages have been installed, 0 software packages have to be uninstalled, and 0 software packages have not been upgraded. Download the 352 kB software package. After decompression, 944 kB of extra space will be consumed. Do you want to continue? [Y/n] y: 1 http://cn.archive.ubuntu.com/ubuntu/ Precise-updates/main openssh-server amd64. 9p1-5ubuntu1.3 [338 kB] Get: 2 http://cn.archive.ubuntu.com/ubuntu/ Precise/universe ssh-contact-service amd64 0.6-1build1 [7,476 B] Get: 3 http://cn.archive.ubuntu.com/ubuntu/ Precise/main ssh-import-id all 2.10-0ubuntu1 [6,598 B] downloading 352 kB. It takes 1 second (314 kB/s) to pre-set the software package... selecting previusly unselected package openssh-server. (Reading database... the system currently has 320267 files and directories installed .) Decompressing openssh-server (from... openssh-server_1 % 3a5. 9p1-5ubuntu1.3_amd64.deb )... selecting previusly unselected package ssh-contact-service. extracting ssh-contact-service (from... /ssh-contact-service_0.6-1build1_amd64.deb )... selecting previusly unselected package ssh-import-id. extracting ssh-import-id (from... /ssh-import-id_2.10-0ubuntu1_all.deb )... processing the trigger for man-db... processing the trigger for ureadahead... processing the trigger for ufw ... Setting openssh-server. 9p1-5ubuntu1.3 )... creating SSH2 RSA key; this may take some time... creating SSH2 DSA key; this may take some time... creating SSH2 ECDSA key; this may take some time... ssh start/running, process 27543 is setting ssh-contact-service (0.6-1build1 )... setting ssh-import-id (2.10-0ubuntu1 )... wahaha @ ubuntu-K55VD :~ $

Then, I checked whether the ssh service was started. According to the information displayed, I have started the service.

wahaha@ubuntu-K55VD:~$ ps -e | grep ssh  602 ?        00:00:00 sshd 2082 ?        00:00:00 ssh-agentwahaha@ubuntu-K55VD:~$

Then I downloadPuTTYAfter downloading the software, double-click it.


Then I view the IP address of my computer.

Wahaha @ ubuntu-K55VD :~ $ Ifconfig eth0 Link encap: Ethernet hardware address 08: 60: 6e: 14: 00: cf up broadcast multicast mtu: 1500 hops: 1 received packet: 0 error: 0 discard: 0 overload: 0 frames: 0 sent packets: 0 error: 0 discarded: 0 overload: 0 carrier: 0 collision: 0 sending queue length: 1000 received Bytes: 0 (0.0 B) sending byte: 0 (0.0 B) lo Link encap: local LOOPBACK inet address: 127.0.0.1 mask: 255.0.0.0 inet6 address: 1/128 Scope: Host UP LOOPBACK RUNNING MTU: 65536 hops: 1 receive data packet: 6027 error: 0 discard: 0 overload: 0 frames: 0 send data packet: 6027 error: 0 discard: 0 overload: 0 carrier: 0 collision: 0 send queue length: 0 receiving Bytes: 650313 (650. 3 KB) Sending byte: 650313 (650.3 KB) wlan0 Link encap: Ethernet hardware address 20: 68: 9d: f7: 53: f1 inet address: 218.87.104.65 broadcast: 218.87.104.127 mask: 2017100000000128 inet6 address: fe80: 2268: 9dff: fef7: 53f1/64 Scope: Link up broadcast running multicast mtu: 1500 hops: 1 receive packets: 43824 error: 0 discard: 0 overload: 0 frames: 0 sent packets: 27107 error: 0 discarded: 0 overload: 0 carrier: 0 collision: 0 sending queue length: 1000 received Bytes: 24782722 (24.7 MB) sent byte: 4217911 (4.2 MB) wahaha @ ubuntu-K55VD :~ $
Then I ping Windows 7 to check whether the connection between the VM and the physical server Whether the network is smoothAccording to the display, we can see that they have been interconnected.
Microsoft Windows [version 6.1.7600] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C: \ Users \ Li_Jun> ping 218.87.104.65 pinging 218.87.104.65 with 32 bytes of data: replies from 218.87.104.65: byte = 32 time <1 ms TTL = 63 replies from 218.87.104.65: byte = 32 time <1 ms TTL = 63 replies from 218.87.104.65: byte = 32 time <1 ms TTL = 63 replies from 218.87.104.65: bytes = 32 time <1 ms TTL = 63218.87.104.65 Ping statistics: Packets: Sent = 4, received = 4, lost = 0 (0% lost ), estimated round-trip time (in milliseconds): Minimum = 0 ms, maximum = 0 ms, average = 0msC: \ Users \ Li_Jun>
Then I start logging in remotely.

It is shown that I have successfully logged on remotely.


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.