I've seen the question here but I'm not sure if the same solution would apply to me
Magit, how to use system's ssh agent and don't ask for password
I'm on Emacs 25.1 / Ubuntu 16.04. I've just set up SSH-keys according to https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/ and I've added the public key to my GitHub account.
When I try to push though, Magit prompts me for my password to my account [email protected] (as always) rather than seeing that I've set an SSH-key into ssh-agent.
M-x getenv SSH_AGENT_PID
doesn't exist and M-x getenv SSH_AUTH_SOCK
is /run/user/1000/keyring/ssh
. echo $SSH_AGENT_PID
is 18145. What is the next step from here?
M-x setenv SSH_AGENT_PID 18145
?