1

I have created public/private key pair using the instructions in this link and access is given for this key from GIT. when i tried to clone the repository, i am prompted for password in GIT bash, I tried the passphrase, which i used while generating the key, it did not work and how to solve this issue.

OS: Windows 8

n92
  • 7,424
  • 27
  • 93
  • 129

1 Answers1

0

One propable cause is because you haven't set the environment variable HOME (unless you started git with the git-cmd.bat included in the Git For Windows distrbution)

@if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH%
@if not exist "%HOME%" @set HOME=%USERPROFILE%

Ssh needs to know where to find your public/private key, and it is by default in %HOME%\.ssh.

As described in "Unable to Git-push master to Github", you can debug it with a:

ssh -Tvvv git@server
Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250