Following the macOS update (to Monterey 12.6.1) my ssh authentication stopped working. I was getting a "Repository not found. Please make sure you have the correct access rights."
I have reset my ssh setup and followed Github's official guidelines on link
My current ~/.ssh/config
looks like this:
Host *.github.com
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_ed25519
I now get a new error that I haven't been able to solve. When I run ssh -T git@hostname
, I get "Bad configuration option: usekeychain"
I have tried the following fixes:
- Adding to config:
IgnoreUnknown UseKeychain
- Adding to config:
IgnoreUnknown AddKeysToAgent,UseKeychain
(link) - Clearing DNS cache:
sudo killall -HUP mDNSResponder
- Removed
~/.ssh/known_hosts
- Changed hostname to
Host *
UseKeychain
from somewhere.