public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alex Schuster <wonko@wonkology.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] sshd won't restart on remote system
Date: Fri, 28 Nov 2008 02:28:54 +0100	[thread overview]
Message-ID: <200811280228.56881.wonko@wonkology.org> (raw)
In-Reply-To: <49bf44f10811121629w5d68b98fxfd24634370a9eb92@mail.gmail.com>

Grant wrote:

> >>> >> If it doesn't start I'm locked out of the remote system.
> >>> >
> >>> > You may be interested in :
> >>> > /etc/init.d/sshd reload
> >>>
> >>> I get:
> >>>
> >>> # /etc/init.d/sshd reload
> >>>  * Reloading sshd ...
> >>> No /usr/sbin/sshd found running; none killed. [ ok ]

"/etc/init.d/ssh zap" should do it. If "/etc/init.d/ssh start" then still 
does not work, you may need to kill -9 the running sshd server. You may 
do this, running ssh sessions will not be terminated by this.

You can also start/test the new sshd parallel to the running old one, but 
on another port: /usr/sbin/sshd -p 12345. Then connect with ssh -p 12345.

[...]
> >> When is the last time you did an etc-update?
> >
> > I just checked on my system. sshd is in /usr/bin/sshd. Not sbin. You
> > have an outdated /etc/init.d/sshd file. You might need to etc-update,
> > or reinstall sshd and run etc-update afterwards
>
> Thanks for helping me out with this.  I re-emerged openssh and now
> sshd restarts just fine.

I just had the same problem. After upgrading from openssh-4.7_p1-r6 to 
5.1_p1-r1, /etc/init.d/sshd did not work. Configs had been updated 
already. I emerged 5.1_p1-r1 again, and now /etc/init.d/sshd works fine.

	Wonko



      reply	other threads:[~2008-11-28  1:29 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-12 17:37 [gentoo-user] sshd won't restart on remote system Grant
2008-11-12 17:49 ` Mike Williams
2008-11-12 18:35 ` Dan Wallis
2008-11-12 19:05   ` Grant
2008-11-12 22:57     ` Nicolas Sebrecht
2008-11-12 23:27       ` Grant
2008-11-12 23:36         ` Andrey Falko
2008-11-12 23:38           ` Andrey Falko
2008-11-13  0:29             ` Grant
2008-11-28  1:28               ` Alex Schuster [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200811280228.56881.wonko@wonkology.org \
    --to=wonko@wonkology.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox