求助:sshd 服务停不了怎么办?

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
Edelweisszf
帖子: 38
注册时间: 2009-02-25 15:56

求助:sshd 服务停不了怎么办?

#1

帖子 Edelweisszf » 2010-05-12 20:15

我装的是 Ubuntu 10.04 LTS
用命令

代码: 全选

$ sudo apt-get install ssh
安装 ssh 和 openssh-server 包以后,可以正常使用 ssh 服务
但是每次开机后 sshd 服务都自动启动,而且用命令

代码: 全选

$ sudo /etc/init.d/ssh stop
无法停止 ssh 服务,尽管底下显示:

代码: 全选

 * Stopping OpenBSD Secure Shell server sshd                             [ OK ]
但是查看 sshd 的状态以及系统进程,sshd 都还在运行:

代码: 全选

$ /etc/init.d/ssh status
 * sshd is running

$ ps -ef | grep sshd
root      2380     1  0 20:10 ?        00:00:00 /usr/sbin/sshd
1000      2393  1508  0 20:14 pts/0    00:00:00 grep --color=auto sshd
请问还有什么方法能停掉 sshd 服务吗?
Edelweisszf
帖子: 38
注册时间: 2009-02-25 15:56

Re: 求助:sshd 服务停不了怎么办?

#2

帖子 Edelweisszf » 2010-05-13 16:00

pocoyo 写了::em20
不想默认启动的 我用sysv-rc-conf 勾去的 这个情况...
我试了这个方法,依然没有用…… :em19
头像
pumas
帖子: 13
注册时间: 2010-06-04 14:55

Re: 求助:sshd 服务停不了怎么办?

#3

帖子 pumas » 2010-07-30 8:42

我也遇到这个问题了。
期待解决。
晕~5月的贴! :em20
小白的得罪和愚蠢,还请见谅~
头像
pumas
帖子: 13
注册时间: 2010-06-04 14:55

Re: 求助:sshd 服务停不了怎么办?

#4

帖子 pumas » 2010-07-30 16:22

楼上的大大,我该把什么东东贴上来让您查一下毛病? :em06
小白的得罪和愚蠢,还请见谅~
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: 求助:sshd 服务停不了怎么办?

#5

帖子 eexpress » 2010-07-30 16:25

1004

sudo service ssh stop

是使用/etc/init/了。不是init.d了。
● 鸣学
头像
冲浪板
论坛版主
帖子: 7513
注册时间: 2007-05-06 8:19

Re: 求助:sshd 服务停不了怎么办?

#6

帖子 冲浪板 » 2010-07-30 16:35

pocoyo 写了:我的现在就关好了了的。。。 :em24
关上你还怎么再开的?
头像
link_01
帖子: 1024
注册时间: 2008-11-05 13:24

Re: 求助:sshd 服务停不了怎么办?

#7

帖子 link_01 » 2010-07-30 18:17

老版本一切正常
debian testing 正常
笔记
-------------------------------------
http://blog.163.com/wqt_1101
头像
pumas
帖子: 13
注册时间: 2010-06-04 14:55

Re: 求助:sshd 服务停不了怎么办?

#8

帖子 pumas » 2010-08-26 14:46

我来结贴。

通过新×&(得力??)…………程序管理,搜索openssh,然后,卸载之。这样就完全上不去了。
所以,我猜想,各位遇到问题的大大们,是不是在一台机器上装了2个ssh呢?
:em09

刚刚接触Ubuntu,再深入的解释,我就不行了。期待高手指教
小白的得罪和愚蠢,还请见谅~
回复