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

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值