Rh-che: CentOS base stack: sshd fails to start

Created on 16 Sep 2017  路  3Comments  路  Source: redhat-developer/rh-che

image

To reproduce it just run:

docker run --rm -ti registry.centos.org/che-stacks/centos-stack-base

you should see the following output:

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
sshd: no hostkeys available -- exiting.
[user@ea91ad6b3be0 projects]$
kinbug sprincurrent-sprint severitP1

Most helpful comment

Add sudo /usr/bin/ssh-keygen -A to the entrypoint just before starting sshd

All 3 comments

cc @dharmit

Add sudo /usr/bin/ssh-keygen -A to the entrypoint just before starting sshd

Can confirm that solution works ^, I tried it earlier but wanted to make sure I wasn't missing something

Was this page helpful?
0 / 5 - 0 ratings