Send file to github

I want to send the virtual machine file to my github but I can’t send.
I created a remote repository in the virtual machine to be able to send the file and complete the project build a celestial bodies database, but when I send to my github it asks for the password and user, but always fails authentication.