Git for Windows: Enforcing OpenSSH

I installed git for windows, and when the option of choosing Putty or OpenSSH was presented, I chose OpenSSH. However, I have putty installed, and it seems that git has caught this and is trying to use it. (I have GIT_TRACE = 2 in environment variables)

E:\blah>git push
trace: built-in: git 'push'
trace: run_command: 'ssh' 'git@bitbucket.org' 'git-receive-pack '...
Enter passphrase for key 'C:\putty\my.ppk':

Which is really strange, since ppk doesn't even have a passphrase. Although the real problem is that he should not use a trowel key, he should use ~ / .id_rsa

This worked right after installation, but after restarting the computer, he started to do it.

Is there a way to tell git to use openssh without reinstalling it?

+4
source share
1 answer

it seems that git caught on this

, , putty.exe % PATH%.

GIT_SSH.

set GIT_SSH

openssh, git/bin/ssh.exe:

set GIT_SSH=C:\path\to\git\bin\ssh.exe

, push pull ~/id_rsa (.pub) , putty *.ppk.

+3

All Articles