Gentoo Archives: gentoo-user

From: Dan Farrell <dan@×××××××××.cx>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] SSH won't restart
Date: Mon, 10 Sep 2007 19:59:00
Message-Id: 20070910143815.294027ed@pascal.spore.ath.cx
1 On Mon, 10 Sep 2007 12:23:37 -0700
2 Grant <emailgrant@×××××.com> wrote:
3
4 > My host is pretty good about issuing commands for me. Any ideas
5 > there?
6 >
7 > - Grant
8 start sshd manually to get back in. something like '/usr/bin/sshd -p 3'
9 (that would listen on port 3 for ssh connections)
10 ("absolute path is necessary for re-exec")
11
12 I still don't know what happened; here's what I can do:
13 ===================================================================
14 dan@pascal ~ $ ssh root@davey
15 Last login: Mon Sep 10 14:23:18 2007 from pascal.spore.ath.cx
16 davey ~ # ps -eaf | grep sshd
17 root 28869 1 0 14:23 ? 00:00:00 /usr/sbin/sshd
18 root 29147 28869 0 14:34 ? 00:00:00 sshd: root@pts/0
19 root 29173 29152 0 14:34 pts/0 00:00:00 grep --colour=auto sshd
20 davey ~ # kill -9 28869
21 davey ~ # ps -eaf | grep sshd
22 root 29147 1 0 14:34 ? 00:00:00 sshd: root@pts/0
23 root 29186 29152 0 14:35 pts/0 00:00:00 grep --colour=auto sshd
24 davey ~ # /etc/init.d/sshd restart
25 * Stopping
26 sshd ... [ !! ]
27 davey ~ # /etc/init.d/sshd zap
28 * Manually resetting sshd to stopped state.
29 davey ~ # /etc/init.d/sshd start
30 * Starting
31 sshd ... [ ok ]
32 davey ~ # exit logout
33 Connection to davey closed.
34 dan@pascal ~ $ ssh root@davey
35 Last login: Mon Sep 10 14:34:26 2007 from pascal.spore.ath.cx
36 davey ~ # exit
37 logout
38 Connection to davey closed.
39 dan@pascal ~ $
40 =====================================================================
41 as you can see, it worked fine for me. I even make sure to use -9.
42
43 good luck, grant
44 --
45 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] SSH won't restart Grant <emailgrant@×××××.com>