Skip to content

Instantly share code, notes, and snippets.

@iathmika
Forked from d11wtq/docker-ssh-forward.bash
Created January 19, 2022 06:47
Show Gist options
  • Save iathmika/d9388f7a4ab73bb92beebfbc232753b0 to your computer and use it in GitHub Desktop.
Save iathmika/d9388f7a4ab73bb92beebfbc232753b0 to your computer and use it in GitHub Desktop.

Revisions

  1. @d11wtq d11wtq created this gist Jan 29, 2014.
    1 change: 1 addition & 0 deletions docker-ssh-forward.bash
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    docker run -rm -t -i -v $(dirname $SSH_AUTH_SOCK) -e SSH_AUTH_SOCK=$SSH_AUTH_SOCK ubuntu /bin/bash