Skip to content
S

SSH Agent

GitHub Action to setup `ssh-agent` with a private key

by webfactoryFree

#1711in Developer Tools
0In stores

Description

ssh-agent is a GitHub Action that starts ssh-agent in a workflow, exports the SSH_AUTH_SOCK variable, and loads one or more private SSH keys…

Highlights

  • Starts ssh-agent and loads private keys in a workflow
  • Lets git clone over SSH work in CI
  • Supports multiple GitHub deploy keys
  • Works in container-based workflows
  • Configurable agent socket path

Ratings & Reviews

No ratings yet

Be the first to rate SSH Agent.

People also visit

S

SSH Action

GitHub Actions for executing remote ssh commands

Developer Tools
Launch
G

Github Keygen

Easy creation and upgrade of secure SSH configuration for your GitHub account(s)

Developer Tools
Launch
G

Github Pages Deploy Action

Automatically deploy your project to GitHub Pages using GitHub Actions

Developer Tools
Launch
P

Preloop

agent-native, drop-in Github Actions

Developer Tools
Launch
U

using-sops

Secrets or key setup in a repo

AI Skills
Get
M

Multi Runners

Multi self-hosted runners on single host!

Developer Tools
Launch

SSH Agent FAQ

What does this action do?

It starts ssh-agent in a GitHub Actions job and loads the private SSH keys you provide, so SSH connections work in the job.

Why would I need it?

A workflow can only access its own repository by default. This action lets it use a deploy key to clone other private repositories or connect to servers.

Can I use more than one key?

Yes. Several deploy keys can be loaded, and the action maps each one to its repository using the key's comment.

Does the key need a passphrase?

The README says the private key must not have a passphrase.

Does it work on Windows and in Docker?

The README says it should work everywhere GitHub Actions runs, but Windows and Docker support is newer and has had less feedback.

What are the best SSH Agent alternatives?

Popular alternatives to SSH Agent include SSH Action, Github Keygen and Github Pages Deploy Action. See all SSH Agent alternatives

Developer Stuff

Badges