[Buildroot] user: openssh build question
Peter Korsgaard
peter at korsgaard.com
Wed Mar 16 07:54:45 UTC 2016
>>>>> "Steve" == Steve Calfee <stevecalfee at gmail.com> writes:
> Hi,
> Does anyone know why the build litters my target /etc directory with
> files instead of putting them in ssh? I think I must have something
> configured wrong. I have upgraded to buildroot 2016.02.
What is your config? Do you use a rootfs overlay?
> here is the /etc dir, see the generated keys at the end. I think they
> should be put in ssh:
> Thanks, Steve
> ls -1 output/target/etc/
[snip]
> ssh
> ssh_host_dsa_key
> ssh_host_dsa_key.pub
> ssh_host_ecdsa_key
> ssh_host_ecdsa_key.pub
> ssh_host_ed25519_key
> ssh_host_ed25519_key.pub
> ssh_host_key
> ssh_host_key.pub
> ssh_host_rsa_key
> ssh_host_rsa_key.pub
> ssl
We don't generate ssh host keys at build time, but only at (first) boot
in the /etc/init.d/S50sshd init script, so I wonder where you got these
from?
I just did a test build here:
ls -1 ls -1 output/target/etc
fstab
group
hostname
hosts
init.d
inittab
issue
mtab
network
nsswitch.conf
os-release
passwd
profile
profile.d
protocols
resolv.conf
services
shadow
ssh
ssl
Whereas on the target I see:
# ls -1 /etc/
fstab
group
hostname
hosts
init.d
inittab
issue
mtab
network
nsswitch.conf
os-release
passwd
profile
profile.d
protocols
random-seed
resolv.conf
services
shadow
ssh
ssl
# ls -1 /etc/ssh/
moduli
ssh_config
ssh_host_dsa_key
ssh_host_dsa_key.pub
ssh_host_ecdsa_key
ssh_host_ecdsa_key.pub
ssh_host_ed25519_key
ssh_host_ed25519_key.pub
ssh_host_rsa_key
ssh_host_rsa_key.pub
sshd_config
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list