You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To go further, for security purposes (forcing secure algorithms, servers signatures, etc.), I would like to be able to pass my host config and known_hosts files to the container.
TL;DR
I first wanted to authenticate on my server with my ssh key. Found that mounting the ssh agent socket as volume would be a reasonable solution.
To go further, for security purposes (forcing secure algorithms, servers signatures, etc.), I would like to be able to pass my host config and known_hosts files to the container.
This is what my
docker run
command look so far:When doing so with the current image, I hit a
Bad owner or permissions on /root/.ssh/config
.Yep: files are mounted with the owner id from the host, which is not present in the container.
Therefore, I created a "custom image" to extend the behaviour as such:
... and now, I am able to use the following command successfully (note the slight changes in the volumes destinations):
Thanks for reading, happy to hear your thoughts on that.
The text was updated successfully, but these errors were encountered: