Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] SSH won't restart Daniel da Veiga <danieldaveiga@×××××.com>
Re: [gentoo-user] SSH won't restart Dan Farrell <dan@×××××××××.cx>