New computer, git pull origin asks for a password

on my new computer, I install git and my putty.exe and ssh key etc. just fine.

So, I am doing a:

git pull origin 

and then on the command line, I ask for a password.

I have no idea what password he wants, and then he also asks for my server password after several unsuccessful attempts with the first password.

he asks:

 blahblah@serveradmin.com password: 

What's happening?

(my git rep is hosted on a common unix isp server)

I already configured pageant to use my private key, and it gave me a popup to enter my passphrase. This is how it works on my old computer, and then when I open git - bash and do "w23> pull origin", it works fine without asking anything.

Update II

So let me summarize what happens here:

I have the same setup on my office computer (windows7) (desktop) and it works fine without asking me any questions. All that I do b4 with git runs the .bat file, which loads the pageant.exe file:

 C:\putty\pageant.exe "E:\code\pg_pk.ppk" 

Then running git pull origin works fine, doesn't ask me about any password.

I also had this on my laptop, and it worked just like my office computer, until I installed Windows 7 on it. Now it asks for my password, even though the pageant.exe file is working (I see it on the taskbar and the key is loaded).

So, today I grabbed the .bat file and the all / putty folder and put it on my laptop, it still doesnโ€™t work, it asks me for the password when I type: git pull origin

(I use the same version of git on both computers)

Actually vague, what could it be?

+6
git windows
source share
5 answers

From your question, it's not clear if you configured Git to actually use PuTTY. What is the contents of your GIT_SSH environment GIT_SSH ?

It must be installed on the full path to plink.exe . Even better: if you also use TortoiseSVN or TortoiseHg, set GIT_SSH to their TortoisePlink.exe . TortoisePlink been changed to not read from standard input, but instead open a dialog box if something goes wrong. Git redirects standard input so that you cannot type anything in plink if, for example, your server IP address changes and plink asks you to enter yes to confirm, this will not work. (You will have to call plink or putty manually and then say yes , and they will save it to the registry.) TortoisePlink will display the yes / No dialog box instead.

+4
source share

Key phrase ssh key.

To fix this, you can restore the key on your new computer using ssh-keygen and then save to git origin

+2
source share

I would double check your SSH keys - it looks like it is not sending your identity.

0
source share

I found that a contestant sometimes just doesn't work. IMHO it is much easier to configure it with an empty password using the ssh client command line. From memory:

  • Generate public / private key using git bash:

    ssh-keygen -t RSA -C email@address

DO NOT enter a password.

  1. Download the contents of% USERPROFILE% .ssh \ id_rsa.pub

  2. Git should work, including the Windows command line, git bash, turtle, git extensions, etc.

0
source share

I ran into this problem. What worked for me, oddly enough, did not create the repository through TortoiseGit, but rather through git init .

0
source share

All Articles