When generating an SSH key, you'll need to add your newly created (or existing) SSH key to the ssh-agent.
Before adding a new SSH key to the ssh-agent, you should have:
Tip: If you used an existing SSH key rather than generating a new SSH key, you'll need to replace id_rsa in the above command with the name of your existing private key file.
-
Ensure ssh-agent is enabled:
# start the ssh-agent in the background eval "$(ssh-agent -s)" Agent pid 59566
-
Add your SSH key to the ssh-agent:
ssh-add ~/.ssh/id_rsa
No comments:
Post a Comment