Skip to content

Commit 9e021c0

Browse files
author
Harrison Heck
committed
Fixed mount location for .ssh to match entry.sh
In entry.sh, in order for it to fix the permissions and copy to `~/.ssh`, the mount must be on `/.ssh`, not `~/.ssh`.
1 parent 4806cef commit 9e021c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ docker run -d --name=ssh-agent docker-ssh-agent:latest
4242
Run a temporary container with volume mounted from host that includes your SSH keys. SSH key id_rsa will be added to ssh-agent (you can replace id_rsa with your key name):
4343

4444
```
45-
docker run --rm --volumes-from=ssh-agent -v ~/.ssh:/root/.ssh -it docker-ssh-agent:latest ssh-add /root/.ssh/id_rsa
45+
docker run --rm --volumes-from=ssh-agent -v ~/.ssh:/.ssh -it docker-ssh-agent:latest ssh-add /root/.ssh/id_rsa
4646
```
4747

4848
The ssh-agent container is now ready to use.

run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,6 @@ echo -e "${bold}Launching ssh-agent container...${nc}"
7373
docker run -d --name=ssh-agent docker-ssh-agent:latest
7474

7575
echo -e "Adding your ssh keys to the ssh-agent container..."
76-
docker run --rm --volumes-from=ssh-agent -v ~/.ssh:/root/.ssh -it docker-ssh-agent:latest ssh-add /root/.ssh/id_rsa
76+
docker run --rm --volumes-from=ssh-agent -v ~/.ssh:/.ssh -it docker-ssh-agent:latest ssh-add /root/.ssh/id_rsa
7777

7878
echo -e "${green}ssh-agent is now ready to use.${nc}"

0 commit comments

Comments
 (0)