There are plenty of references for generating and using SSH keys on MacOS. Google for answers and they're everywhere. What is less obvious is how to use multiple SSH keys, especially for the same host, e.g. GitHub. I had multiple SSH keys and a ~/.ssh/config
file, but certain of the credentials weren't being found.
The nuggets of goodness I found describe how to properly use ~/.ssh/config
- (here, here, here,
here... +many more). The key is actually using the resulting Host
aliases!
Go figure, huh? 🤦