HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

ssh-agent — Spawn an SSH Agent process. Note: An SSH Agent holds SSH keys decrypted in memory until removed or t

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandssh-agentnotespawnsshprocesscliagent

Problem

How to use the ssh-agent command: Spawn an SSH Agent process. Note: An SSH Agent holds SSH keys decrypted in memory until removed or the process is killed. See also: ssh-add. More information: <https://man.openbsd.org/ssh-agent>.

Solution

ssh-agent — Spawn an SSH Agent process. Note: An SSH Agent holds SSH keys decrypted in memory until removed or the process is killed. See also: ssh-add. More information: <https://man.openbsd.org/ssh-agent>.

Start an SSH Agent for the current shell:
eval $(ssh-agent)


Kill the currently running agent:
ssh-agent -k

Code Snippets

Start an SSH Agent for the current shell

eval $(ssh-agent)

Kill the currently running agent

ssh-agent -k

Context

tldr-pages: common/ssh-agent

Revisions (0)

No revisions yet.