简体   繁体   中英

Unable to clone GIT repository using SSH

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM