- Start the ssh-agent in the background
eval $(ssh-agent -s)
- Add SSH key to agent, this presumes your ssh private key is in the
home
directory and namedid_rsa
ssh-add ~/.ssh/id_rsa
eval $(ssh-agent -s)
home
directory and named id_rsa
ssh-add ~/.ssh/id_rsa