Skip to content

Instantly share code, notes, and snippets.

@WooodHead
Forked from d11wtq/docker-ssh-forward.bash
Created June 14, 2020 03:21
Show Gist options
  • Save WooodHead/9eb8a454819e1f9c6893247a50fa767a to your computer and use it in GitHub Desktop.
Save WooodHead/9eb8a454819e1f9c6893247a50fa767a to your computer and use it in GitHub Desktop.
How to SSH agent forward into a docker container
docker run -rm -t -i -v $(dirname $SSH_AUTH_SOCK) -e SSH_AUTH_SOCK=$SSH_AUTH_SOCK ubuntu /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment