[Buildroot] sshd reports error in libcrypto while trying to read host key
MJohn at midmark.com
Wed Mar 31 14:12:15 UTC 2021
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
~> 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: Starting OpenSSH server daemon...
Mar 31 13:20:54 cm1sd systemd: Started OpenSSH server daemon.
Mar 31 13:21:02 cm1sd sshd: Unable to load host key "/etc/ssh/ssh_host_rsa_key": error in libcrypto
Mar 31 13:21:02 cm1sd sshd: Unable to load host key: /etc/ssh/ssh_host_rsa_key
Mar 31 13:21:02 cm1sd sshd: sshd: no hostkeys available -- exiting.
Mar 31 13:21:02 cm1sd systemd: sshd.service: Main process exited, code=exited, status=1/FAILURE
Mar 31 13:21:02 cm1sd systemd: sshd.service: Failed with result 'exit-code'.
openssh version 8.5p1
openssl version 1.1.1k
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.
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...
More information about the buildroot