Skip to content

Connection with ssh-agent #1941

Answered by hslatman
CoderMcDaniel asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @CoderMcDaniel,

If you run the SSH agent on your host, and want step in a Docker container to interface with it, you'll have to share the SSH agent socket with the Docker container. This blog explains how you can do so: https://www.jamesridgway.co.uk/sharing-an-ssh-agent-between-a-host-machine-and-a-docker-container/.

Generally users run step natively on their machine, so that step can interact with the SSH agent directly. That way you don't need to share the SSH agent socket with the Docker container.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@CoderMcDaniel
Comment options

Answer selected by CoderMcDaniel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants