Skip to content

Instantly share code, notes, and snippets.

@felladrin
Created April 17, 2020 01:53
Show Gist options
  • Select an option

  • Save felladrin/63ce6c2141c108e64becd224ff07331d to your computer and use it in GitHub Desktop.

Select an option

Save felladrin/63ce6c2141c108e64becd224ff07331d to your computer and use it in GitHub Desktop.
Example of SSH Agent Bridge working on Mac (Tested on Docker v19.03.8)
docker run -it -v /run/host-services/ssh-auth.sock:/run/host-services/ssh-auth.sock -e SSH_AUTH_SOCK="/run/host-services/ssh-auth.sock" --rm alpine /bin/sh -c "apk update && apk add openssh-client && mkdir ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_hosts && ssh -T git@github.com"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment