Pushing to email@example.com:(my repo).git
firstname.lastname@example.org: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I suddenly started getting this, if I try to change everything thing back to default and try again, I get "device not configured".
This suddenly started happening after upgrading to High Sierra
Please check if the ssh-agent has your keys loaded. If not, please add them to the agent.
Run below commands in terminal to do so,
To check if keys are loaded:
To add keys to agent:
Key in the passphrase used while generating the ssh key and you should be good to go.
What I did just yesterday to fix this problem:
1. Create "config" file in ~/.ssh
2. Put in this config:
Host = *
After that authentication goes smoothly(with help of "ssh-add -K identity"). This seems to be a change related to macOS update: required for Sierra or High Sierra.
Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events