public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* Re: [gentoo-user] SSH won't restart
  @ 2007-09-10 20:14 99%                 ` Grant
  0 siblings, 0 replies; 1+ results
From: Grant @ 2007-09-10 20:14 UTC (permalink / raw
  To: gentoo-user

> > My host is pretty good about issuing commands for me.  Any ideas
> > there?
> >
> > - Grant
> start sshd manually to get back in.  something like '/usr/bin/sshd -p 3'
> (that would listen on port 3 for ssh connections)
> ("absolute path is necessary for re-exec")
>
> I still don't know what happened; here's what I can do:
> ===================================================================
> dan@pascal ~ $ ssh root@davey
> Last login: Mon Sep 10 14:23:18 2007 from pascal.spore.ath.cx
> davey ~ # ps -eaf | grep sshd
> root     28869     1  0 14:23 ?        00:00:00 /usr/sbin/sshd
> root     29147 28869  0 14:34 ?        00:00:00 sshd: root@pts/0
> root     29173 29152  0 14:34 pts/0    00:00:00 grep --colour=auto sshd
> davey ~ # kill -9 28869
> davey ~ # ps -eaf | grep sshd
> root     29147     1  0 14:34 ?        00:00:00 sshd: root@pts/0
> root     29186 29152  0 14:35 pts/0    00:00:00 grep --colour=auto sshd
> davey ~ # /etc/init.d/sshd restart
>  * Stopping
> sshd ...                                                      [ !! ]
> davey ~ # /etc/init.d/sshd zap
>  * Manually resetting sshd to stopped state.
> davey ~ # /etc/init.d/sshd start
>  * Starting
> sshd ...                                                      [ ok ]
> davey ~ # exit logout
> Connection to davey closed.
> dan@pascal ~ $ ssh root@davey
> Last login: Mon Sep 10 14:34:26 2007 from pascal.spore.ath.cx
> davey ~ # exit
> logout
> Connection to davey closed.
> dan@pascal ~ $
> =====================================================================
> as you can see, it worked fine for me.  I even make sure to use -9.
>
> good luck, grant

Thank you but doesn't it look like there must be a problem that is
preventing my sshd from starting?  Won't '/usr/bin/sshd -p 3' just
fail, or is that more likely to work than '/etc/init.d/sshd start'?

Also, is '/usr/bin/sshd' sufficient?  Why not port 22?

- Grant
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2007-09-08 15:40     [gentoo-user] SSH won't restart Grant
2007-09-08 18:10     ` Josh Cepek
2007-09-10 16:58       ` Grant
2007-09-10 17:29         ` Stephen Wittig
2007-09-10 17:54           ` Grant
2007-09-10 18:10             ` Stephen Wittig
2007-09-10 19:12               ` Grant
     [not found]                 ` <49bf44f10709101223j51dc1138j27f4bd17ad48275f@mail.gmail.com>
2007-09-10 19:38                   ` Dan Farrell
2007-09-10 20:14 99%                 ` Grant

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox