Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to tell Git (msysgit on Windows) to use ssh and not pageant

Tags:

git

github

ssh

I installed Git a while back on my Win7 machine and told it to use Putty for doing ssh. So now it expects Pageant to be running all the time in order to be able to connect to GitHub.

Today I installed a newer version of Git and told it to use OpenSSH, not Putty. But it keeps trying to authenticate by looking for Pageant.

My identity files are configured correctly, and if I do ssh [email protected] from my BASH prompt it succeeds. Still, the only way to the remote repo is if Pageant is running.

Where is this configured and how can I instruct msysgit to forget about putty/pageant?

like image 622
Assaf Lavie Avatar asked Mar 15 '11 17:03

Assaf Lavie


People also ask

How does Git know SSH key Windows?

Once your key is open, you want to select Conversions -> Export OpenSSH key and save it to HOME\. ssh\id_rsa . After you have the key at that location, Git Bash will recognize the key and use it.

How does Git know which SSH key to use?

Git does not know, or care. It just runs ssh. Specifies that ssh(1) should only use the authentication identity files configured in the ssh_config files, even if ssh-agent(1) or a PKCS11Provider offers more identities. The argument to this keyword must be “yes” or “no”.


1 Answers

MsysGit should take its ssh program from the GIT_SSH environment variable, so even if you did install a newer version, check that your current session include the right GIT_SSH value.

like image 145
VonC Avatar answered Sep 29 '22 00:09

VonC