I am having trouble setting up my git repository on a local machine. In particular, when I try to run "git push origin master" command, it asks me for a password for my ubuntu@ec2-##-###-###-###.compute-1.amazonaws.
Needless to say, I don't know of any password and do not remember setting it up. (I have tried using my aws user password but it didn't work). Here is what I've done so far:
On a remote server:
Created and initiated a --bare html.git directory.
On a local machine:
Ran commands,
git remote add origin ssh://ubuntu@ec2-xx-xxx-xxx-xxx:/var/www/html.git
and
git config --global remote.origin.receivepack "git receive-pack"
Afterwards, when I try to push to the origin from a git folder on local machine, I get prompted for a password.
I have tried using an RSA key. Generated it on my machine. Appended it to the authorized_keys file located in ~/.ssh folder on the remote server and then, before trying to push from local machine, added the key identity to the authentication agent ( on a local machine ). The result was the same. Can anyone please help me out? I realize that this question might look like a duplicate one but I just seem to have hit a wall here. I've searched for solutions before posting here and got some hits ( in fact, that's how I was able to figure out the whole process of installing and configuring this git server/client duo ) but was not able to find anything that would help me with this authentication problem.
Thanks in advance