Skip to content

Instantly share code, notes, and snippets.

@pa-0
Forked from d11wtq/docker-ssh-forward.bash
Created July 22, 2024 16:54
Show Gist options
  • Select an option

  • Save pa-0/852557d4074edef7c3cd1f974c617eaa to your computer and use it in GitHub Desktop.

Select an option

Save pa-0/852557d4074edef7c3cd1f974c617eaa 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