First check whether SSH is installed
View plainprint?
- Shuo @ Ubuntu :~ $ SSH localhost SSH
- SSH: connect to host localhost port 22: Connection refused
Not Installed
View plainprint?
- Shuo @ Ubuntu :~ $ Sudo apt-Get install OpenSSH-Server
Start SSH
View plainprint?
- Shuo @ Ubuntu :~ $ Sudo/etc/init. d/ssh start
- Rather than invoking init scripts through/etc/init. d, use the service (8)
- Utility, e.g. Service SSH start
- Since the script you are attempting to invoke has been converted to
- Upstart job, you may also use the START (8) utility, e.g. Start SSH
Check whether the service is correctly started
View plainprint?
- Shuo @ Ubuntu :~ $ PS-E | grep SSH
- 1719? 00:00:00 ssh-agent
- 2235? 00:00:00 sshd
View IP
View plainprint?
- Shuo @ Ubuntu :~ $ Ifconfig
- Eth0 link encap: Ethernet hardware address 00: 0C: 29: 5A: 24: 59
- Inet address: 192.168.1.112 broadcast: 192.168.139.255 mask: 255.255.255.0
- Inet6 address: fe80: 20c: 29ff: fe5a: 2459/64 scope: Link
- Up broadcast running Multicast MTU: 1500 hops: 1
- Received data packet: 120 error: 0 discard: 0 overload: 0 frames: 0
- Packet sending: 36 error: 0 discard: 0 overload: 0 carrier: 0
- Collision: 0 sending queue length: 1000
- Received byte: 11641 (11.6 KB) sent byte: 5531 (5.5 KB)
- Interrupt: 19 base address: 0x2024
- 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: 16436 hops: 1
- Received data packet: 12 error: 0 discard: 0 overload: 0 frames: 0
- Packet sending: 12 error: 0 discard: 0 overload: 0 carrier: 0
- Collision: 0 sending queue length: 0
- Received byte: 720 (720.0 B) sent byte: 720 (720.0 B)
Connect to Ubuntu through winscp
Enter the host name 192.168.1.112. The default port is 22.
Username: Shuo password :*******
Logon OK
Winscp: http://sourceforge.net/projects/winscp/files/WinSCP/4.3.5/winscp435setup.exe/download
Post: http://blog.csdn.net/tonicus/article/details/6924173
Reference: http://www.wdlinux.cn/ssh_client
Http://winscp.net/eng/docs/lang:chs