All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] sshd reports error in libcrypto while trying to read host key
@ 2021-03-31 14:12 Michael John
  2021-04-08 21:52 ` Peter Seiderer
  0 siblings, 1 reply; 7+ messages in thread
From: Michael John @ 2021-03-31 14:12 UTC (permalink / raw)
  To: buildroot

Hello,

I?ve built openssh and I?m having some issues running it on my board. While running sshd it reports an error in libcrypto while trying to read the host key. The host keys are generated under /etc/ssh.

~> ls /etc/ssh
moduli                                 ssh_host_ecdsa_key                    ssh_host_rsa_key
ssh_config                           ssh_host_ecdsa_key.pub           ssh_host_rsa_key.pub
ssh_host_dsa_key             ssh_host_ed25519_key              sshd_config
ssh_host_dsa_key.pub     ssh_host_ed25519_key.pub

~> systemctl status sshd
? sshd.service - OpenSSH server daemon
     Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Wed 2021-03-31 13:21:02 UTC; 11s ago
    Process: 315 ExecStartPre=/usr/bin/ssh-keygen -A (code=exited, status=0/SUCCESS)
    Process: 341 ExecStart=/usr/sbin/sshd -D -e (code=exited, status=1/FAILURE)
   Main PID: 341 (code=exited, status=1/FAILURE)

Mar 31 13:20:51 cm1sd systemd[1]: Starting OpenSSH server daemon...
Mar 31 13:20:54 cm1sd systemd[1]: Started OpenSSH server daemon.
Mar 31 13:21:02 cm1sd sshd[341]: Unable to load host key "/etc/ssh/ssh_host_rsa_key": error in libcrypto
Mar 31 13:21:02 cm1sd sshd[341]: Unable to load host key: /etc/ssh/ssh_host_rsa_key
Mar 31 13:21:02 cm1sd sshd[341]: sshd: no hostkeys available -- exiting.
Mar 31 13:21:02 cm1sd systemd[1]: sshd.service: Main process exited, code=exited, status=1/FAILURE
Mar 31 13:21:02 cm1sd systemd[1]: sshd.service: Failed with result 'exit-code'.

I?m using:
openssh version 8.5p1
openssl version 1.1.1k
crpytodev-linux fabe5989a3d

Is there an issue using this combination of packages? These are the lastest versions in buildroot.

My config file (sshd_config) is only trying to load the host key for RSA, but I get the same error about libcrypto for ecdsa and ed25519.

Anyone see this issue as well? Any help is appreciated.

Thanks.
-Michael

CONFIDENTIALITY NOTICE: This message, including any attachments, contains confidential information intended for a specific individual and purpose. If you are not the intended recipient, you should delete this message and any disclosure, copying, or distribution of this message, or the taking of any action based on it, by you is strictly prohibited.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20210331/ad8547c4/attachment.html>

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-04-21 12:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-31 14:12 [Buildroot] sshd reports error in libcrypto while trying to read host key Michael John
2021-04-08 21:52 ` Peter Seiderer
2021-04-16 20:07   ` Michael John
2021-04-16 22:02     ` Peter Seiderer
2021-04-20 14:13       ` Michael John
2021-04-20 22:21         ` Peter Seiderer
2021-04-21 12:20           ` Michael John

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.