* Re: [gentoo-user] SSH won't restart
@ 2007-09-16 15:33 99% ` Mike Williams
0 siblings, 0 replies; 1+ results
From: Mike Williams @ 2007-09-16 15:33 UTC (permalink / raw
To: gentoo-user
On Saturday 08 September 2007 16:40:34 Grant wrote:
> I just upgraded ssh and when I try to restart I get:
>
> * Stopping sshd ... [ !! ]
>
> I don't see anything about it in '/var/log/sshd/current'. How can I
> figure out what is wrong? I'm a little nervous because I don't want
> to shut myself out of this remote server.
This thread went on for a long time, which I mostly ignored TBH.
However, I think I just found a solution.
openssh, in some circumstances (I believe to be openssl changing ABI), will
not restart as you found. It will only not restart when it's being actively
used, so you can't do so will logged in.
To restart it when your logged out on a remote server is simply a matter of
doing this:
# (sleep 15 && /etc/init.d/sshd restart) &
Then getting all ssh sessions logged out within 15 seconds.
I've just done this on a remote system and can now happily log back in, and
restart ssh without issue.
--
Mike Williams
--
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-16 15:33 99% ` Mike Williams
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox