When I use git push I got this error. I am using SSH authentication and checked its correctness. A weird thing is, I have configured my name as [my_name] but it is [my_other_name] got denied. I use this [my_other_name] for another repo. Since I have multiple SSH keys and corresponding multiple repos, I wonder if that's where the issue comes from. Below is my config file. Thanks!
(base) MacBook-Pro personal % git push -u origin main
ERROR: Permission to [my_name]/personal.git denied to [my_other_name].
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Host *
AddKeysToAgent yes
IdentityFile ~/.ssh/id_ed25519_personal_repo
IdentityFile ~/.ssh/id_ed25519
Host hsd1.ma.comcast.net
ForwardAgent yes
I am trying to push sth into a new repo that is authenticated by SSH. Since I have multiple SSH keys and corresponding multiple repos, I wonder if that's where the issue comes from.