File tree 1 file changed +33
-0
lines changed
1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,39 @@ Forward SSH agent socket into a container
2
2
3
3
Still experimental -- contact
[email protected] if you want help.
4
4
5
+ ## Installation
6
+
7
+ Assuming you have a ` /usr/local `
8
+
9
+ ```
10
+ $ git clone git://github.com/avsm/docker-ssh-agent-forward
11
+ $ make
12
+ $ make install
13
+ ```
14
+
15
+ On every boot, do:
16
+
17
+ ```
18
+ $ pinata-ssh-forward
19
+ ```
20
+
21
+ and the you can run ` pinata-ssh-mount ` to get a Docker CLI fragment
22
+ that adds the SSH agent socket and set ` SSH_AUTH_SOCK ` within the container.
23
+
24
+ ```
25
+ $ pinata-ssh-mount
26
+ -v /Users/avsm/.pinata-sshd/ssh-1azk9Mmd27/agent.16:/tmp/ssh-agent.sock --env SSH_AUTH_SOCK=/tmp/ssh-agent.sock
27
+
28
+ $ docker run -it `pinata-ssh-mount` ocaml/opam ssh [email protected]
29
+ The authenticity of host 'github.com (192.30.252.128)' can't be established.
30
+ RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
31
+ Are you sure you want to continue connecting (yes/no)? yes
32
+ Warning: Permanently added 'github.com,192.30.252.128' (RSA) to the list of known hosts.
33
+ PTY allocation request failed on channel 0
34
+ Hi avsm! You've successfully authenticated, but GitHub does not provide shell access.
35
+ Connection to github.com closed.
36
+ ```
37
+
5
38
## Contributors
6
39
7
40
* Justin Cormack
You can’t perform that action at this time.
0 commit comments