Good afternoon, I have a problem when pushing to a remote repository on the azure vm. I configured the ssh key between the vm and my computer, I can only connect via ssh (passing the server user) with the command: ssh -i <private key path> user@vmip. Everything ok so far, the problem is when I give git push, I get the error of permission denied (public key). I've already run the commands eval $(ssh-agent), ssh-add ~/.ssh/my key and it still doesn't send the push. I need help as I use the student plan to test my study projects, if anyone can help me I would be very grateful. Thanks.
The push is done from my machine to vm directly, with googlecloud I never had any problems.