sshd: no hostkeys available -- exiting

  • Open
  • quality assurance status badge
Details
2 participants
  • Ludovic Courtès
  • Christopher Baines
Owner
unassigned
Submitted by
Christopher Baines
Severity
normal

Debbugs page

Christopher Baines wrote 3 months ago
(address . bug-guix@gnu.org)
87o719p4ue.fsf@cbaines.net
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.
-----BEGIN PGP SIGNATURE-----

iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAmdivDlfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF
ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh
aW5lcy5uZXQACgkQXiijOwuE9Xdlmw//SLP2a5JUDJeJexXDZUtta3PHBNrWXxkb
OJFvIRIxmRPeH4OdOrGGz5EWjPKEwZpmNN/or7QAGyWgb2OuLlrfWAHwnssV3XB/
/tRRpAjmKGpS6uD8mM7ZpSD1Buak+uvgF3deGIFUGsQPNU7HodXeagvEdzDogZjN
T1P5C7NDrdjnj+7VQJT8GiL/eYmh34oDzLxU0wkCOCcMcPSJBFrqJ1gmJHGfd4vw
pjoFVzmOVBnVjZBXELWvf7361/SRA27L5wUa5EKmcKwoMa41/lG0MySWN0qFuuKF
ePOGofS0hG1vTN8XMinwTMOsOAuy1Sc5Lig2J26XSX8tOka2QpJRv6oKoy16/EQg
+Kt+ngGBujH8Ed2wZWzxGBD2W2bWliAZGOTICA11MICCwIRI/i0SEDXXIiFldgSe
BUcUvBss44BcBIyai2xHDKO2abGTbgvMSIWhUmfMs1ctsmoLYdiG6ICv8ngSQBns
HZ19nF724S+nc9xIWjdlF6btQquhBFhomE2AascfliixDswdtdSQHXPxeyR5cRdP
MACCQXLggYMQJWnbFxa/UHJ1axlZkyzh6NlTCYuYLXBeRnsRpH3mjgfA10W/ziD0
v1U2Kv5MCiBig+X54LW3f/n7VPhZutUXhxdzuqHDjV3uMHQRAZEMMlhx2vuVHKpb
wFtGyEmFPWs=
=cTax
-----END PGP SIGNATURE-----

Ludovic Courtès wrote 1 months ago
(name . Christopher Baines)(address . mail@cbaines.net)(address . 74943@debbugs.gnu.org)
87cyg7febc.fsf@gnu.org
Hello,

Christopher Baines <mail@cbaines.net> skribis:

Toggle quote (4 lines)
> 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?

Thanks,
Ludo’.
Christopher Baines wrote 1 months ago
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 74943@debbugs.gnu.org)
87a5bbs0yg.fsf@cbaines.net
Ludovic Courtès <ludo@gnu.org> writes:

Toggle quote (11 lines)
> Hello,
>
> Christopher Baines <mail@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.

-----BEGIN PGP SIGNATURE-----

iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAmeYrSdfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF
ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh
aW5lcy5uZXQACgkQXiijOwuE9XfyJhAAk9Wnzp4FW/ms1mWtI/AdVNAMR9jduPlH
AIbmxFUJ36VEBFJITfGrk0gWbmFO0RS2fU/x29yYQufvlvERQf6mX4SYHi/PnDI6
11DXrP73/Z9pLFsfUICRImeR6Hh1kC6ZwQJPYUKu42p9ri1ifoxhajuOqlDb3hKt
7lhKLV2xGrWaBs/k6ixxd9VM9PYaXtlP3VOlVf2UGxx1pa0/adXB65eOnTRxpxqD
XcC6lt6Du5y3NjUy0XgASlSvAD31M9Ngb/XkZZNFCH5Ye76+nizfgtczWf1WZPpd
4Sd/MXXMaaJn7IM9IYHNUBuYUQYFTPGHtKYA+NxJX43NrZPvOZmcRZOr9ZRSpHo7
ET31O4B/fu2H4lvgusYY1EhJ3K6YAvQMn3iXwfdLtuYOfskq9RcsFqzEQtW/DYCp
jlP+U2k+CkD0shrP+xIxnTS5DbVuT0pGvAmAbL4GQVGY4FV+A/DfppNjWiH77t2l
q6rOETm/kcYdTWl8yv28s6BNygIJ45LGF2mwMCTvANAh1KDPfuLkCYDkEoJLnySJ
hAj0C7G4pg7uBuFd57cYlYQyfSb2TNF6qyGTFX9j8W50WJd1J1KAxIasYXRajjiu
nXpvABFeQP2l+dn7RdeytOfGU/eFoR+nxHsk791ZQ79PVFg2VuKoyhOo8r4eVx31
t7TaL6p75Hs=
=blEx
-----END PGP SIGNATURE-----

Ludovic Courtès wrote 1 months ago
(name . Christopher Baines)(address . mail@cbaines.net)(address . 74943@debbugs.gnu.org)
87r04ndx5n.fsf@gnu.org
Hi,

Christopher Baines <mail@cbaines.net> skribis:

Toggle quote (19 lines)
> Ludovic Courtès <ludo@gnu.org> writes:
>
>> Hello,
>>
>> Christopher Baines <mail@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’.
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 74943@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 74943
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch
You may also tag this issue. See list of standard tags. For example, to set the confirmed and easy tags
mumi command -t +confirmed -t +easy
Or, remove the moreinfo tag and set the help tag
mumi command -t -moreinfo -t +help