Ubuntu 12.04.01 装配ssh
Ubuntu 12.04.01 安装ssh
1. 打开终端,执行命令:
sudo apt-get install ssh
提示如下:
输入 Y 继续安装,从下面界面看到已经完成安装,并启动运行
完整输入及输出内容如下:
chensl@ubuntu:~$ sudo apt-get install ssh [sudo] password for chensl: Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: linux-headers-3.2.0-29 linux-headers-3.2.0-29-generic Use 'apt-get autoremove' to remove them. The following extra packages will be installed: openssh-server ssh-import-id Suggested packages: rssh molly-guard openssh-blacklist openssh-blacklist-extra monkeysphere The following NEW packages will be installed: openssh-server ssh ssh-import-id 0 upgraded, 3 newly installed, 0 to remove and 6 not upgraded. Need to get 346 kB of archives. After this operation, 910 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/main openssh-server amd64 1:5.9p1-5ubuntu1 [339 kB] Get:2 http://us.archive.ubuntu.com/ubuntu/ precise/main ssh all 1:5.9p1-5ubuntu1 [1,278 B] Get:3 http://us.archive.ubuntu.com/ubuntu/ precise/main ssh-import-id all 2.10-0ubuntu1 [6,598 B] Fetched 346 kB in 3s (92.6 kB/s) Preconfiguring packages ... Selecting previously unselected package openssh-server. (Reading database ... 167009 files and directories currently installed.) Unpacking openssh-server (from .../openssh-server_1%3a5.9p1-5ubuntu1_amd64.deb) ... Selecting previously unselected package ssh. Unpacking ssh (from .../ssh_1%3a5.9p1-5ubuntu1_all.deb) ... Selecting previously unselected package ssh-import-id. Unpacking ssh-import-id (from .../ssh-import-id_2.10-0ubuntu1_all.deb) ... Processing triggers for ureadahead ... ureadahead will be reprofiled on next reboot Processing triggers for ufw ... Processing triggers for man-db ... Setting up openssh-server (1:5.9p1-5ubuntu1) ... 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 3268 Setting up ssh (1:5.9p1-5ubuntu1) ... Setting up ssh-import-id (2.10-0ubuntu1) ... chensl@ubuntu:~$
2. 检查是否已经安装完成并运行:
输入命令:
ps -e | grep ssh
显示如下内容,则表明已经安装并启动
2017 ? 00:00:00 ssh-agent 3408 ? 00:00:00 sshd