Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git asking for password.

I'm trying to set up my computer to be using my github account, here's what I've got:

In my locally where the project is kept:

 $ git remote -v 
 origin ssh://[email protected]/djleprechaunz/OscProject.git (fetch)
 origin ssh://[email protected]/djleprechaunz/OscProject.git (push)

and

ssh-add -l
2048 [key1] dave@mycomputername (RSA)
2048 [key2] [email protected] (RSA)

(Sorry, not sure about the security of posting the whole key up).

When I try

git fetch

it pops up with a dialog 'An application wants access to the private key '[email protected]', but it is locked'

What should I be doing here? I tried putting in my github password, but that doesn't work.

like image 606
dwjohnston Avatar asked Dec 11 '12 01:12

dwjohnston


People also ask

How do I bypass a username and password in git?

Go to your local repository and update your remote by git remote set-url origin git+ssh://[email protected]/username/reponame.git - you can check it first by git remote -v ); Here you go, just touch t; git add t; git commit -m "test"; git push and confirm yes to enjoy the password-free world.

How do I re enter a git password?

git push) and enter your username. For the password you need to generate a Personal Access Token. Go to https://github.com/settings/profile select the Developer Settings on the right. Select Personal Access Token Generate new token .

Does git clone need password?

To git clone using a password, simply provide the username for the git account, and you will be prompted with the password. git clone https://username@<repository_url> Cloning into 'private-repo' Password for 'https://<username>@<repository_url>: remote: Enumerating objects: 3, done.


1 Answers

you need to put the passphrase you entered while creating the ssh key when it prompts for the password

like image 134
kaushik gandhi Avatar answered Sep 29 '22 07:09

kaushik gandhi