ssh加密访问

ssh 加密访问    telnet 开放访问
需安装软件openssh-server
    $ssh akaedu@192.168.103.114
    $ssh 192.168.103.114

附:log

~$sudo apt-get install openssh-server
[sudo] password for yuxi:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
thunderbird-globalmenu
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
openssh-client ssh-import-id
Suggested packages:
libpam-ssh keychain monkeysphere openssh-blacklist openssh-blacklist-extra
rssh molly-guard
The following NEW packages will be installed:
openssh-server ssh-import-id
The following packages will be upgraded:
openssh-client
1 upgraded, 2 newly installed, 0 to remove and 550 not upgraded.
Need to get 1,309 kB of archives.
After this operation, 896 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main openssh-client i386 1:5.9p1-5ubuntu1.10 [960 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main openssh-server i386 1:5.9p1-5ubuntu1.10 [343 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ precise/main ssh-import-id all 2.10-0ubuntu1 [6,598 B]
Fetched 1,309 kB in 23s (54.9 kB/s)
Preconfiguring packages ...
(Reading database ... 145026 files and directories currently installed.)
Preparing to replace openssh-client 1:5.9p1-5ubuntu1 (using .../openssh-client_1%3a5.9p1-5ubuntu1.10_i386.deb) ...
Unpacking replacement openssh-client ...
Selecting previously unselected package openssh-server.
Unpacking openssh-server (from .../openssh-server_1%3a5.9p1-5ubuntu1.10_i386.deb) ...
Selecting previously unselected package ssh-import-id.
Unpacking ssh-import-id (from .../ssh-import-id_2.10-0ubuntu1_all.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for ufw ...
Setting up openssh-client (1:5.9p1-5ubuntu1.10) ...
Setting up openssh-server (1:5.9p1-5ubuntu1.10) ...
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 4925
Setting up ssh-import-id (2.10-0ubuntu1) ...

安装完成后,就可以直接在其他主机上ssh登录了。

原文地址:https://www.cnblogs.com/embedded-linux/p/5499617.html