You’ve started Emacs before you added your SSH keys to your keyring and now Magit doesn’t work?
I had this annoying problem for a long time. Today, I finally looked up how to remedy this and settled for the simplest of solutions. Emacs’ builtin setenv!
http://skybert.net/emacs/set-unix-env-var-from-within-emacs/
#emacs #unix