Name: docker-ssh-agent-forward
Owner: Code Climate
Description: Forward SSH agent socket into a container
Forked from: uber-common/docker-ssh-agent-forward
Created: 2017-11-22 15:29:33.0
Updated: 2017-11-22 15:29:35.0
Pushed: 2017-06-20 02:46:44.0
Homepage: null
Size: 21
Language: Shell
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Forward SSH agent socket into a container
Still experimental – contact anil@recoil.org or bryan@uber.com if you want help.
Assuming you have a /usr/local
t clone git://github.com/uber-common/docker-ssh-agent-forward
docker-ssh-agent-forward
ke
ke install
On every boot, do:
ta-ssh-forward
and the you can run pinata-ssh-mount
to get a Docker CLI fragment that adds
the SSH agent socket and sets SSH_AUTH_SOCK
within the container.
nata-ssh-mount
sh-agent:/ssh-agent -e SSH_AUTH_SOCK=/ssh-agent/ssh-agent.sock
cker run -it $(pinata-ssh-mount)
-agent-forward ssh -T git@github.com
authenticity of host 'github.com (192.30.252.128)' can't be established.
key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
you sure you want to continue connecting (yes/no)? yes
ing: Permanently added 'github.com,192.30.252.128' (RSA) to the list of known hosts.
allocation request failed on channel 0
vsm! You've successfully authenticated, but GitHub does not provide shell access.
To fetch the latest image, do:
ta-ssh-pull
To build an image yourself rather than fetching from Docker Hub, run
./pinata-ssh-build.sh
from your clone of this repo.
We didn't bother installing the build script with the Makefile since using the hub image should be the common case.
License is ISC.