ssh-agent running in a docker container
1.1K
Generate SSH key, if it doesn't exist yet
ssh-keygen -t ed25519 -C "[email protected]"
Start ssh-agent
docker run -d --restart always \
--env SSH_ADD=/id_ed25519 \
--env SSH_PASS=IfYouUsePassphrase \
--name ssh-agent cravler/ssh-agent
Add your SSH private key to the ssh-agent
docker cp $HOME/.ssh/id_ed25519 ssh-agent:/id_ed25519
docker restart ssh-agent
Check that key added
docker run -it --rm \
--volumes-from ssh-agent \
cravler/ssh-agent ssh-add -L
Content type
Image
Digest
sha256:8a7ff838d…
Size
5.7 MB
Last updated
about 2 years ago
docker pull cravler/ssh-agent:20240603