* [gentoo-user] sshd won't restart on remote system
@ 2008-11-12 17:37 Grant
2008-11-12 17:49 ` Mike Williams
2008-11-12 18:35 ` Dan Wallis
0 siblings, 2 replies; 10+ messages in thread
From: Grant @ 2008-11-12 17:37 UTC (permalink / raw
To: Gentoo mailing list
After updating to the latest stable x86 openssh and merging config
files on my remote system, I get:
# /etc/init.d/sshd restart
* Stopping sshd ... [ !! ]
There is nothing in /var/log/sshd/current. Does anyone know what I should do?
- Grant
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] sshd won't restart on remote system
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
1 sibling, 0 replies; 10+ messages in thread
From: Mike Williams @ 2008-11-12 17:49 UTC (permalink / raw
To: gentoo-user
On Wednesday 12 November 2008 17:37:29 Grant wrote:
> After updating to the latest stable x86 openssh and merging config
> files on my remote system, I get:
>
> # /etc/init.d/sshd restart
> * Stopping sshd ... [ !! ]
>
> There is nothing in /var/log/sshd/current. Does anyone know what I should
> do?
Sometimes ssh won't restart if it's being used, possible after an openssl
update I'm not sure.
Try this
(sleep 5 ; /etc/init.d/sshd restart) &
then logout, and 5-6 seconds later try to login, if it worked ssh can now be
restarted while you're logged in as normal.
--
Mike Williams
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] sshd won't restart on remote system
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
1 sibling, 1 reply; 10+ messages in thread
From: Dan Wallis @ 2008-11-12 18:35 UTC (permalink / raw
To: gentoo-user
On 12/11/2008, Grant <emailgrant@gmail.com> wrote:
> After updating to the latest stable x86 openssh and merging config
> files on my remote system, I get:
>
> # /etc/init.d/sshd restart
> * Stopping sshd ... [ !! ]
>
> There is nothing in /var/log/sshd/current. Does anyone know what I should do?
You could stop the sshd process manually with kill or similar (I use
htop). (Careful though, you don't want to kill your current session,
just the daemon listening for new connections!) Then you can "zap" the
service and start it as normal.
Or you could reboot the host, and (assuming it's in your default
run-level) sshd will start on boot.
Dan
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] sshd won't restart on remote system
2008-11-12 18:35 ` Dan Wallis
@ 2008-11-12 19:05 ` Grant
2008-11-12 22:57 ` Nicolas Sebrecht
0 siblings, 1 reply; 10+ messages in thread
From: Grant @ 2008-11-12 19:05 UTC (permalink / raw
To: gentoo-user
>> After updating to the latest stable x86 openssh and merging config
>> files on my remote system, I get:
>>
>> # /etc/init.d/sshd restart
>> * Stopping sshd ... [ !! ]
>>
>> There is nothing in /var/log/sshd/current. Does anyone know what I should do?
>
> You could stop the sshd process manually with kill or similar (I use
> htop). (Careful though, you don't want to kill your current session,
> just the daemon listening for new connections!) Then you can "zap" the
> service and start it as normal.
>
> Or you could reboot the host, and (assuming it's in your default
> run-level) sshd will start on boot.
I could reboot, but how can I be sure sshd will start again? The fact
that it's not stopping makes me wonder if there is something wrong.
If it doesn't start I'm locked out of the remote system.
- Grant
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] sshd won't restart on remote system
2008-11-12 19:05 ` Grant
@ 2008-11-12 22:57 ` Nicolas Sebrecht
2008-11-12 23:27 ` Grant
0 siblings, 1 reply; 10+ messages in thread
From: Nicolas Sebrecht @ 2008-11-12 22:57 UTC (permalink / raw
To: gentoo-user
On Wed, Nov 12, 2008 at 11:05:20AM -0800, 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
--
Nicolas Sebrecht
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] sshd won't restart on remote system
2008-11-12 22:57 ` Nicolas Sebrecht
@ 2008-11-12 23:27 ` Grant
2008-11-12 23:36 ` Andrey Falko
0 siblings, 1 reply; 10+ messages in thread
From: Grant @ 2008-11-12 23:27 UTC (permalink / raw
To: gentoo-user
>> 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/sshd restart
* Stopping sshd ... [ !! ]
- Grant
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] sshd won't restart on remote system
2008-11-12 23:27 ` Grant
@ 2008-11-12 23:36 ` Andrey Falko
2008-11-12 23:38 ` Andrey Falko
0 siblings, 1 reply; 10+ messages in thread
From: Andrey Falko @ 2008-11-12 23:36 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 442 bytes --]
On Wed, Nov 12, 2008 at 3:27 PM, Grant <emailgrant@gmail.com> 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 ]
That is scary. Can you do equery f openssh, also do a simple ls
/usr/sbin/sshd
When is the last time you did an etc-update?
[-- Attachment #2: Type: text/html, Size: 797 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] sshd won't restart on remote system
2008-11-12 23:36 ` Andrey Falko
@ 2008-11-12 23:38 ` Andrey Falko
2008-11-13 0:29 ` Grant
0 siblings, 1 reply; 10+ messages in thread
From: Andrey Falko @ 2008-11-12 23:38 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 734 bytes --]
On Wed, Nov 12, 2008 at 3:36 PM, Andrey Falko <ma3oxuct@gmail.com> wrote:
>
>
> On Wed, Nov 12, 2008 at 3:27 PM, Grant <emailgrant@gmail.com> 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 ]
>
>
> That is scary. Can you do equery f openssh, also do a simple ls
> /usr/sbin/sshd
>
> 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
[-- Attachment #2: Type: text/html, Size: 1345 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] sshd won't restart on remote system
2008-11-12 23:38 ` Andrey Falko
@ 2008-11-13 0:29 ` Grant
2008-11-28 1:28 ` Alex Schuster
0 siblings, 1 reply; 10+ messages in thread
From: Grant @ 2008-11-13 0:29 UTC (permalink / raw
To: gentoo-user
>>> >> 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 ]
>>
>> That is scary. Can you do equery f openssh, also do a simple ls
>> /usr/sbin/sshd
>>
>> 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.
- Grant
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] sshd won't restart on remote system
2008-11-13 0:29 ` Grant
@ 2008-11-28 1:28 ` Alex Schuster
0 siblings, 0 replies; 10+ messages in thread
From: Alex Schuster @ 2008-11-28 1:28 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2008-11-28 1:29 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox