vmacarios / devcontainer

Encapsulated development environment to reduce the boilerplate to start developing.
0 stars 0 forks source link

allow ssh-agent forwarding into the devcontainer #20

Closed vmacarios closed 1 week ago

vmacarios commented 1 week ago

Socat shall be used to transfer the local agent socket to the devcontainer

exec socat $SSH_AUTH_SOCK EXEC:"podman exec -i devcontainer 'socat - UNIX-LISTEN:/home/service/.ssh/ssh-auth.sock,unlink-early,fork',nofork" & trap "kill $!" INT TERM EXIT -> if used in script

vmacarios commented 1 week ago

socat has been added to the pkgs install list SSH_AUTH_SOCK var and .ssh folder have been included into the Dockerfile README.md has been updated with the forward command