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

Need a way to get .ssh/config and .ssh/known_hosts to work well with the poky container #77

Open
gschmottlach-xse opened this issue Mar 3, 2022 · 3 comments

Comments

@gschmottlach-xse
Copy link

The closed issue #29 is biting me as well. Currently there does not seem to be a viable way to share the host's .ssh/config and/or .ssh/known_hosts with the poky container since it appears the pokyuser account is created on-the-fly when the container is run based on the uid/gid of the workdir. I desparately need a mechanism to share this in order for my container to build my Yocto image correctly. Do you have any suggestions. It was mentioned in Issue #29 that this remained an outstanding issue that needs to be addressed. I'm hoping a solution has been discovered but just not documented.

@AI0867
Copy link

AI0867 commented May 10, 2022

I personally dump all the things from the host that I need in the container in a subdirectory of the workdir, and then use a single bash-script that sets up aliases, copies files, and sources the relevant environment file.

@patrick-dojofive
Copy link

I'm running into the same issue and the final answer in #29 does not work for me.

@mtetreault
Copy link

I usually mount the known_hosts in /etc/ssh/known_hosts which solves the issue for me.

-v ~/.ssh/known_hosts:/etc/ssh/known_hosts

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

4 participants