GNU bug report logs - #74943
sshd: no hostkeys available -- exiting

Previous Next

Package: guix;

Reported by: Christopher Baines <mail <at> cbaines.net>

Date: Wed, 18 Dec 2024 12:14:02 UTC

Severity: normal

Full log


Message #14 received at 74943 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Christopher Baines <mail <at> cbaines.net>
Cc: 74943 <at> debbugs.gnu.org
Subject: Re: bug#74943: sshd: no hostkeys available -- exiting
Date: Tue, 28 Jan 2025 11:56:36 +0100
Hi,

Christopher Baines <mail <at> cbaines.net> skribis:

> Ludovic Courtès <ludo <at> gnu.org> writes:
>
>> Hello,
>>
>> Christopher Baines <mail <at> cbaines.net> skribis:
>>
>>> I'm having trouble with ssh after reconfiguring, in /var/log/messages I
>>> see an error regarding hostkeys. The files seem to be there though, I've
>>> tried regenerating the keys but that made no difference.
>>
>> Could you provide more info, such as the relevant excerpt of
>> /var/log/messages and the config?
>
> I can't quite remember the exact situation, but I think this turned out
> to be connected with the Patchwork service not being compatible with
> current versions of the Shepherd, specifically it tries to use
> primitive-fork while starting [1] and I'm guessing this leads to
> confusing state things happening internally that break SSH.

Oh there’s potential for breakage indeed.  As a rule of thumb, we should
never use ‘primitive-fork’ and ‘waitpid’ in Shepherd services.

In this case, I’d recommend using ‘spawn-command’:

  (spawn-command "…/patchwork-admin"
                 #:environment-variables …
                 #:user …
                 #:group …)

Ludo’.




This bug report was last modified 136 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.