How To Fix Git - Permission denied (publickey)
down vote It worked for me. Your public key is saved to the id_rsa.pub;file and is the key you upload to your account. You can save this key to the clipboard by running this: pbcopy < ~/.ssh/id_rsa.pub copy the SSH key to the clipboard, return to the web portal. In the SSH Key field, paste your SSH key. In the Name field, provide a name for the key. save . from : stackoverflow.com