Windows 7. Git Public Key Configuration

I followed the instructions below: http://help.github.com/win-set-up-git/ configure git on my Windows 7 computer.

I can use "git bash" and run commands. I am offered my passphrase and can connect successfully. For instance:.

$git push -u origin master
Enter passphrase for key '/c/Users/mbj/.ssh/id_rsa':
Everything up-to-date

Also this:

$ ssh -T git@github.com
Enter passphrase for key '/c/Users/mbj/.ssh/id_rsa':
Hi markbrenigjones! You've successfully authenticated, but GitHub does not provi
de shell access.

$ which ssh
/bin/ssh

However, when I open a regular Windows command prompt and run the same command, I get the following:

C:\util\meta_vimrc>git push
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

Also this:

C:\util\meta_vimrc>ssh -T git@github.com
Permission denied (publickey).

C:\util\meta_vimrc>which ssh
C:\Program Files (x86)\Git\bin\ssh.exe

How do I get this work from the non "git bash" prompt?

+3
source share
2 answers

, , HOME Windows cmd.exe. ssh , /c/Users/mbj/.ssh.

, :

set HOME=C:\Users\mbj\
+4

, PuTTY Pageant.exe . plink.exe , , .

-1

All Articles