ubuntu12.04 ssh服务安装

root@ubuntu:~/work/gittest# ps -ef|grep ssh
shilei    2425  2390  0 18:08 ?        00:00:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session gnome-session --session=ubuntu


缺少sshd,说明ssh服务没有启动或者没有安装


root@ubuntu:~/work/gittest# apt-get install openssh-server
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 291 not upgraded.
Need to get 1,288 kB of archives.
After this operation, 882 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
...


root@ubuntu:~/work/gittest# ps -ef|grep ssh
shilei    2425  2390  0 18:08 ?        00:00:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session gnome-session --session=ubuntu
root      4271     1  0 18:36 ?        00:00:00 /usr/sbin/sshd -D
root      4312  3482  0 18:36 pts/1    00:00:00 grep --color=auto ssh
root@ubuntu:~/work/gittest# 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值