From 029ebd6b547c20698821cad81ad7b3051cf2b075 Mon Sep 17 00:00:00 2001 From: RDxR10 Date: Wed, 26 May 2021 12:28:32 +0530 Subject: [PATCH] Added update to "Adding your SSH key to the ssh-agent" An alternative to establishing a connection to the ssh-auth agent. --- ...erating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/content/github/authenticating-to-github/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md b/content/github/authenticating-to-github/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md index 91cd7f339e06..4ffd8b000381 100644 --- a/content/github/authenticating-to-github/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md +++ b/content/github/authenticating-to-github/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md @@ -170,6 +170,12 @@ 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 %} + as an alternative, this command can be used as well on the current working directory: + + ``` + $ exec ssh-agent bash + ``` + In some Linux environments, you need root access to run the command: ``` @@ -177,6 +183,7 @@ Before adding a new SSH key to the ssh-agent to manage your keys, you should hav $ 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 %}