Update generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md (#5669)
This commit is contained in:
@@ -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 %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user