On 3/6/19 5:12 PM, Ryan Marsaw via blfs-dev wrote:
Hello all.

I noticed that when building OpenSSH using the DESTDIR install, the
"ssh-keygen" program fails to generate the host keys due to non-root
access to the /etc/ssh directory.

The install phase of OpenSSH shows this:

[...]
Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_ecdsa_key
Could not load host key: /etc/ssh/ssh_host_ed25519_key
[...]

So if building OpenSSH with the DESTDIR method, the ssh-keygen program
needs to be run as root manually after installing the package:

ssh-keygen -v -A

We don't generally use the DESTDIR method in the books. AFAIK, rustc is the only package in the book that uses it. Should we really need to address this every time? What about users using package management?

If you follow the instructions in the book, things work. When deviating, users should be able to figure things out for themselves.

  -- Bruce

--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to