Created
April 17, 2020 01:53
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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