Previously read some information that Ubuntu is installed SSH by default, and I installed an ssh myself, and after installation, see SSH service has started. In short, the goal is to have an SSH service, and has started, if not installed, install one first; If the service is not started, start it, because I have started, so I did not consider the issue. About starting SSH service, the information I see on the Internet is:
wahaha@ubuntu-k55vd:~$/etc/init.d/ssh Start
Install an SSH server, my practice is to enter SSH in the terminal, and then press the TAB key to complete, select the installation server.
wahaha@ubuntu-k55vd:~$ sudo apt-get install SSH
SSH Ssh-contact-service ssh-krb5
Ssh-askpass SSHFP Sshm
Ssh-askpass-fullscreen SSHFS Sshmenu
Ssh-askpass-gnome sshfs-dbg Sshpass
Ssh-contact Sshguard Sshuttle
Ssh-contact-client Ssh-import-id
wahaha@ubuntu-k55vd:~$ sudo apt-get install Ssh-contact-service
Then I enter the password to install. [sudo] password for Wahaha:
Reading Package List ... Complete
Analyzing Dependency tree for Package
Reading status information ... Complete
The following additional packages will be installed:
Openssh-server Ssh-import-id
Recommended Packages to install:
Rssh Molly-guard openssh-blacklist Openssh-blacklist-extra monkeysphere
The following "new" packages will be installed:
Openssh-server Ssh-contact-service Ssh-import-id
0 packages were upgraded, 3 new packages were installed, 0 packages were uninstalled, and 0 packages were not upgraded.
You need to download the 352 KB package.
Decompression will consume extra space in 944 KB.
Do you want to continue? [Y/n]y
Get: 1 http://cn.archive.ubuntu.com/ubuntu/precise-updates/main openssh-server amd64 1:5.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]
Download 352 KB, time consuming 1 seconds (kb/s)
Preset package ...
Selecting previously unselected package openssh-server.
(Reading database ...) The system currently has a total of 320,267 files and directories installed. )
Decompressing openssh-server (from .../openssh-server_1%3a5.9p1-5ubuntu1.3_amd64.deb) ...
Selecting previously unselected package Ssh-contact-service.
Decompressing ssh-contact-service (from .../ssh-contact-service_0.6-1build1_amd64.deb) ...
Selecting previously unselected package Ssh-import-id.
Decompressing Ssh-import-id (from .../ssh-import-id_2.10-0ubuntu1_all.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Processing triggers for UFW ...
Setting Openssh-server (1:5.9p1-5ubuntu1.3) ...
Creating SSH2 RSA Key; This could take some time ...
Creating SSH2 DSA Key; This could take some time ...
Creating SSH2 ECDSA Key; This could take some time ...
SSH start/running, Process 27543
Setting Ssh-contact-service (0.6-1build1) ...
Setting Ssh-import-id (2.10-0UBUNTU1) ...
wahaha@ubuntu-k55vd:~$
After I detect the SSH service has not started, according to the information displayed, I have started.
wahaha@ubuntu-k55vd:~$ PS-E | grep ssh
602? 00:00:00 sshd
2082? 00:00:00 ssh-agent
wahaha@ubuntu-k55vd:~$
Then I download a putty software, after downloading, directly double-click to run.
Then I check my computer's IP.
wahaha@ubuntu-k55vd:~$ ifconfig
eth0 Link ENCAP: Ethernet Hardware Address 08:60:6E:14:00:CF
Up broadcast multicast mtu:1500 metric: 1
Receive packets: 0 Error: 0 Discard: 0 Overload: 0 Number of frames: 0
Send packet: 0 Error: 0 Discard: 0 Overload: 0 Carrier: 0
Collisions: 0 Send Queue Length: 1000
Bytes Received: 0 (0.0 B) Bytes Sent: 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 metric: 1
Receive packet: 6027 Error: 0 Discard: 0 Overload: 0 Number of frames: 0
Send packet: 6027 error: 0 Discard: 0 Overload: 0 Carrier: 0
Collisions: 0 Send Queue Length: 0
Receive bytes: 650313 (650.3 KB) Send bytes: 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: 255.255.255.128
Inet6 Address: fe80::2268:9dff:fef7:53f1/64 Scope:link
Up broadcast RUNNING multicast mtu:1500 metric: 1
Receive packet: 43824 Error: 0 Discard: 0 Overload: 0 Number of frames: 0
Send packet: 27107 error: 0 Discard: 0 Overload: 0 Carrier: 0
Collisions: 0 Send Queue Length: 1000
Bytes Received: 24782722 (24.7 MB) bytes Sent: 4217911 (4.2 MB)
wahaha@ubuntu-k55vd:~$
Then I ping it in Windows 7 to see if the network between the virtual machine and the physical machine is clear, and it is clear from the show that they have already exchanged. Microsoft Windows [version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:usersli_jun>ping 218.87.104.65
Pinging 218.87.104.65 with 32 bytes of data:
Reply from 218.87.104.65: Byte =32 time <1ms ttl=63
Reply from 218.87.104.65: Byte =32 time <1ms ttl=63
Reply from 218.87.104.65: Byte =32 time <1ms ttl=63
Reply from 218.87.104.65: Byte =32 time <1ms ttl=63
Ping Statistics for 218.87.104.65:
Packet: Sent = 4, received = 4, lost = 0 (0% lost),
Estimated time, in milliseconds, for a round trip:
Shortest = 0ms, longest = 0ms, average = 0ms
C:usersli_jun>
Then I started to log in remotely.
Finally, I have successfully logged in remotely.
Note : More wonderful tutorials Please pay attention to the triple computer tutorial section, triple Computer group: 189034526 welcome you to join