Sep 14, 2018

Adding SSH key to the ssh-agent

Adding a new SSH key to the ssh-agent to manage your keys

Start the ssh-agent in the background.
  1. eval "$(ssh-agent -s)"
    Agent pid 58588
  2. Add your SSH private key to the ssh-agent. If you created your key with a different name, or if you are adding an existing key that has a different name, replace id_rsa in the command with the name of your private key file.
    ssh-add ~/.ssh/id_rsa