Sublime Forum

Mac - Permission Denied (publickey)

#1

I can use Git fine from the terminal, but in Sublime Merge I cannot push or pull, the error says:

Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
0 Likes

#2

Turns out when I created the ssh-key originally, it never got added to the ssh-agent. Somehow running git was able to find it but sublime-merge wasn’t. Running this command fixes the issue: ssh-add ~/.ssh/id_rsa

0 Likes