Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Every container started with this image has the same key #13

Open
mvachhar opened this issue Jun 22, 2018 · 2 comments
Open

Every container started with this image has the same key #13

mvachhar opened this issue Jun 22, 2018 · 2 comments

Comments

@mvachhar
Copy link

RUN ssh-keygen -A

Are you sure you don't want to do this conditionally in start.sh? With this, every container created with this image will have the same ssh host key which is bad.

@belsander
Copy link

and recreating the docker container also means that the host keys are regenerated, since they are not exposed in volume to make them persistent.

@wishbone51
Copy link

Seems like it can be easily modified to move the host keys to /etc/ssh/host_keys and have the option to mount it as a volume. If the files don't exist, generate them, else leave them alone. I'm in the process of doing this with my fork.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants