Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Not able to clone gerrit repo over https via gitbash(windows client) #371

Closed
devsecopsalm opened this issue Aug 1, 2015 · 5 comments
Closed

Comments

@devsecopsalm
Copy link

I was not able to clone git repository via https to git bash windows client. it shows authentication failure error. same error is not appeared if i try to clone on any Unix machines.

@Dirk1966
Copy link

Dirk1966 commented Aug 1, 2015

May you please check, if the ssh-key is searched at the right position? Because the environment variables HOMEDRIVE and HOMEPATH can be different from the environment variable USERPROFILE the ".ssh" path is sometimes searched in another position, perhaps even different to the git for Windows 1.95 version.
You can test it by connecting with an
ssh -l UserName MachineName
and putting a valid key in the directory you expect git should use.

@dscho
Copy link
Member

dscho commented Aug 7, 2015

it shows authentication failure error.

What is the error? Please, give us a chance to help you. Here are a few tips how to write good bug reports.

@devsecopsalm
Copy link
Author

error pasted

duskrish@DUSKRISH-WS ~/repo_test
$ git clone https://duskrish@rtp-scm-lnx21.xxxxx.com:8081/Test2
Cloning into 'Test2'...
Password for 'https://duskrish@rtp-scm-lnx21.xxxxx.com:8081':
fatal: Authentication failed for 'https://duskrish@rtp-scm-lnx21.xxxxx.com:8081/Test2/'

The same thing if I try in any linux machine it shows a popup where I enter my password and it clones comfortably.
Cloning via ssh has no issues.

Thanks
Dushyanth

@dscho
Copy link
Member

dscho commented Aug 10, 2015

While this does not really qualify for a good bug report (you might want to heed all of the advice from https://github.com/git-for-windows/git/wiki/Issue-reporting-guidelines, not just a couple of tid bits), you might be able to help yourself better by re-running the clone with GIT_CURL_VERBOSE=1.

@dscho
Copy link
Member

dscho commented Aug 19, 2015

Git for Windows 1.x is now deprecated; Please upgrade to Git for Windows 2.x and open a new ticket there if the bug persists. Thanks.

@dscho dscho closed this as completed Aug 19, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants