After quite a long time between reboots, I did one.
After rebooting I was working on some code hosted on GitHub, however
> ssh -T [email protected]
[email protected]: Permission denied (publickey).
Now, I have previously followed the steps in Generate new SSH key to generate the SSH key.
However, after rebooting it seems like neither the ssh-agent is started (not present in any startup scripts) nor that the identities are added after starting the ssh-agent.
I'm kind of at a loss of where to start troubleshooting, as I cannot see why ssh doesn't make use of the config in ~/.ssh/config that I have set up.
Note: Booting up the ssh-agent with eval "$(ssh-agent -s)" and adding them using ssh-add --apple-use-keychain <path to private key> seems to work fine.
This also works when added to my .bashrc or .zshrc, but if I am not mistaken, this should not be necessary when the ~/.ssh/config is set up.
Any help would be much appreciated
Edit 1:
The following is my ~/.ssh/config
Host *.github.com
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/rk_gmail
# Fig ssh integration. Keep at the bottom of this file.
Match all
Include ~/.fig/ssh