I have two SSH keys. One is for my company github account and the other one is for my personal github account. My company account SSH key had been working well before I created another SSH key for my personal account. The last SSH key pair I created was for my personal account and it worked well. Now, I am trying to push to my company account but I get an error message. Is there some way to use both SSH keys or to switch between them ? I will share my config file. The first one is the original SSH key for my company account.
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_rsa
Host github.com
HostName github.com
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_ed25519
IdentitiesOnly yes