It’s Cybersecurity Awareness Month! Join our interactive training session, or learn about security and AI from 1Password experts.
Forum Discussion
Former Member
3 years agoQuestion about configuring git commit signing for Multiple GitHub Accounts
Hi,
I have two GitHub accounts, one for personal and another for academic purposes. I configured my git config to work with both accounts by following https://developer.1password.com/docs/ssh/git-commit-signing#configure-multiple-commit-signing-setups. When I commit, 1password displays the appropriate SSH key for authentication, and the commits are successfully verified on GitHub.
However, I also came across https://developer.1password.com/docs/ssh/agent/advanced#use-multiple-github-accounts using the ~/.ssh/config file. I have not followed these steps.
My question is whether the git commit signing will work as intended without modifying the ~/.ssh/config file. Currently, my ssh config file has the default configuration set by 1password.
Thank you.
1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Browser:_ Not Provided
1 Reply
- Former Member
Hi @404, thanks for your question!
Your commit signing will work as intended without modifying
~/.ssh/config
.Your
~/.ssh/config
file is used by the ssh client for authentication, this includes pushing to and pulling from GitHub. It does not have an affect on commit signing. The second link you mentioned is specifically for using multiple keys for authentication.The git configuration you linked is exclusively for commit signing.
Let us know if you have any further questions!