All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Seiderer <ps.report@gmx.net>
To: buildroot@busybox.net
Subject: [Buildroot] sshd reports error in libcrypto while trying to read host key
Date: Thu, 8 Apr 2021 23:52:26 +0200	[thread overview]
Message-ID: <20210408235226.153250d5@gmx.net> (raw)
In-Reply-To: <DM6PR08MB4425422C1100F44BFF129275AE7C9@DM6PR08MB4425.namprd08.prod.outlook.com>

Hello Michael,

On Wed, 31 Mar 2021 14:12:15 +0000, Michael John <MJohn@midmark.com> wrote:

> 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.

You can try to run sshd with strace to get a clue about the failing syscall
(in case this is the reason) in libcrypto....

Which hardware and which (hardware) crypto device?

Regards,
Peter

> 
> 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.

  reply	other threads:[~2021-04-08 21:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210408235226.153250d5@gmx.net \
    --to=ps.report@gmx.net \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.