I'm trying to get Git to work, which keeps insisting that I don't have the correct access right (Permission denied, publickey), which lead me to this post, suggesting to inspect ssh-add
I noticed that, indeed, ssh-add -l
returned
The agent has no identities.
So, I added an identity
ssh-add ~/.ssh/ssh_key
Which returned exit code 0 (from echo $?
)
Now, ssh-add -l
shows that I have a key added. However, once I quit and re-open terminal, the key disappears. ssh-add -l
returns "The agent has no identities." all over again.
Does anyone know how I can add the key so that it sticks?