1
0
mirror of synced 2025-12-21 10:57:10 -05:00

Update generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md (#5669)

This commit is contained in:
bobbyaxe61
2021-05-11 10:55:59 +01:00
committed by GitHub
parent b234b0aeaa
commit b5358aa73d

View File

@@ -170,6 +170,14 @@ Before adding a new SSH key to the ssh-agent to manage your keys, you should hav
1. {% data reusables.command_line.start_ssh_agent %}
In some Linux environments, you need root access to run the command:
```
$ sudo -s -H
$ eval "$(ssh-agent -s)"
> Agent pid 59566
```
2. Add your SSH private key to the ssh-agent. {% data reusables.ssh.add-ssh-key-to-ssh-agent %}
{% data reusables.ssh.add-ssh-key-to-ssh-agent-commandline %}