1 |
This process is the ssh daemon: |
2 |
root 2988 1 0 Sep04 ? 00:00:00 /usr/sbin/sshd |
3 |
|
4 |
Two things: before killing the process with the KILL signal, I would |
5 |
try killing it with TERM |
6 |
kill -TERM 2988 |
7 |
|
8 |
If that doesn't work then kill the process with the KILL signal. |
9 |
|
10 |
I would also use: |
11 |
/etc/init.d/sshd restart |
12 |
|
13 |
This will give the init script a chance to do some cleanup work before |
14 |
restarting |
15 |
|
16 |
-Best of Luck, Stephen |
17 |
|
18 |
On 9/10/07, Grant <emailgrant@×××××.com> wrote: |
19 |
> > I just upgraded ssh and when I try to restart I get: |
20 |
> > |
21 |
> > * Stopping sshd ... [ !! ] |
22 |
> > |
23 |
> > I don't see anything about it in '/var/log/sshd/current'. How can I |
24 |
> > figure out what is wrong? I'm a little nervous because I don't want |
25 |
> > to shut myself out of this remote server. |
26 |
> > |
27 |
> > |
28 |
> > I had a similar issue after a previous update to ssh when I went to restart |
29 |
> > it to get it to use the new binaries. One of the nice features of sshd is |
30 |
> > that your current session will say active even if you kill the sshd daemon |
31 |
> > process. Of course, if you get disconnected then you will not be able to |
32 |
> > log back in, so it's good to do what you need to quickly if you do need to |
33 |
> > kill (or if it's really stuck, kill -9) the process. When I had this |
34 |
> > problem I issued a `kill -9 PID_NUMBER && /etc/init.d/sshd start` - just be |
35 |
> > sure that you're killing the /usr/sbin/sshd process and not one of your sshd |
36 |
> > login forks at the same time. |
37 |
> |
38 |
> OK, I've got to be really careful here. I see the following processes |
39 |
> in 'ps -ef': |
40 |
> |
41 |
> root 2988 1 0 Sep04 ? 00:00:00 /usr/sbin/sshd |
42 |
> root 7573 2988 0 07:28 ? 00:00:00 sshd: root@pts/0 |
43 |
> |
44 |
> Should I: |
45 |
> |
46 |
> kill -9 2988 && /etc/init.d/sshd start |
47 |
> |
48 |
> Are you sure? :) |
49 |
> |
50 |
> - Grant |
51 |
> -- |
52 |
> gentoo-user@g.o mailing list |
53 |
> |
54 |
> |
55 |
-- |
56 |
gentoo-user@g.o mailing list |