I am working the commits through SSH keys, the process I do to identify myself is the following:
eval $(ssh-agent)
ssh-add ~/Desktop/ssh/Github/UsuarioA <--- Llave privada
Even if I run the command
ssh -T [email protected]
It appears that I identified myself as user A: Hi UserA ! You've successfully authenticated, but GitHub does not provide shell access.
But when making commits it appears to me that they were made by UserB !
What seems most strange to me is that I have already deleted the keys of UserB, they do not exist. And the repository is private and UserB does not have permission to access that repository. I don't understand what is happening, because there are no warnings or errors, any idea what is happening?
Note: I use GitBash for it and work with Windows
Problem image:
I solved it with the help of this blog , which tells us how to configure the .git/config to recognize the specific ssh key.
Leaving the .git/config configuration similar to this:
From the additional configuration I added was all [user] and [core].sshCommand