guberm / tortoisegit

Automatically exported from code.google.com/p/tortoisegit
0 stars 0 forks source link

Authentication Failed in Win7 #2446

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Attempting to pull / push from any repository (either github, bitbucket)
2. Tortoise Git request user 
3. Tortoise Git request password

What is the expected output? What do you see instead?
I got an authentication failed error.

What version of TortoiseGit and msysgit are you using? On
what operating system?

Tortoise Git 1.8.13.0
msysgit 1.9.5

Please provide any additional information below.

Those repositories worked before, but I can't tell when they stopped to work 
because I mainly use Intellij to push & pull.
From Git everything is working ok on the same repositories and the same 
credentials.

Original issue reported on code.google.com by psabb...@gmail.com on 27 Feb 2015 at 9:37

Attachments:

GoogleCodeExporter commented 9 years ago
Does it work on cli? With the git.exe command as displayed?

Original comment by sstrickr...@googlemail.com on 27 Feb 2015 at 9:40

GoogleCodeExporter commented 9 years ago
Yes, the exact command copy & pasted works

Original comment by psabb...@gmail.com on 27 Feb 2015 at 9:42

GoogleCodeExporter commented 9 years ago
I notice something, maybe is not important. But in the the command line, after 
I inserted my user, it prompts 

Password for 'https://MY_USER@github.com':

However, as you can see in the screenshots, tortoise git prompts

Password for 'https://github.com':

Original comment by psabb...@gmail.com on 27 Feb 2015 at 9:45

GoogleCodeExporter commented 9 years ago
I just re-tested and it works for me.

Btw. TortoiseGit first asks me for my username and then for the password for 
"https://[username]@github.com".

Original comment by sstrickr...@googlemail.com on 28 Feb 2015 at 9:58

GoogleCodeExporter commented 9 years ago
In my case, tortoise is not asking the password for 
https://[username]@github.com
is asking the password for http://github.com.
Any idea of what's going on?

Original comment by psabb...@gmail.com on 28 Feb 2015 at 10:01

GoogleCodeExporter commented 9 years ago
Whats the URL you're pulling from or pushing to?

Original comment by sstrickr...@googlemail.com on 28 Feb 2015 at 10:21

GoogleCodeExporter commented 9 years ago
It's a private project. https://github.com/company/project.git

Original comment by psabb...@gmail.com on 28 Feb 2015 at 10:33

GoogleCodeExporter commented 9 years ago
I see. So no username included in the URL... Mhh. Sorry, I've no clue right 
now. All i can say is that it works for me :( Tried cloning using SSH?

Original comment by sstrickr...@googlemail.com on 28 Feb 2015 at 10:34

GoogleCodeExporter commented 9 years ago
Yeah, it worked switching to SSH, but the https connection is still throwing 
errors, I had problems even trying to clone new repos.

Original comment by psabb...@gmail.com on 28 Feb 2015 at 11:40

GoogleCodeExporter commented 9 years ago
Perhaps the cuase is *private* github repository?

Original comment by yuelinho...@gmail.com on 1 Mar 2015 at 9:45

GoogleCodeExporter commented 9 years ago
I don't understand what you mean. As I said, none of my repositories are 
working, (bitbucket, github), and they worked before.
I think when tortoise asks for my password without the user in the url (see 
    screenshot.133.jpg) there is an error. Maybe you guys can take a look in which 
scenarios you prompt for password without the username in the URL

Original comment by psabb...@gmail.com on 1 Mar 2015 at 4:35

GoogleCodeExporter commented 9 years ago
could you please try to create a new PUBLIC repository on GitHub, then try 
again?

What is the OS?

Original comment by yuelinho...@gmail.com on 1 Mar 2015 at 4:47

GoogleCodeExporter commented 9 years ago
The problem here is that TortoiseGit isn't prompting for anything - it's 
git.exe (using a simple wrapper so that the prompt is not in a cli window but a 
dialog box).

Try cli but set GIT_ASKPASS environment variable before to 
GIT_ASKPASS="C:\Program Files\TortoiseGit\bin\SshAskPass.exe"

Try calling sshaskpass with an arbitrary parameter and you'll see.

Does your username contain non ascii/ansi chars?

Original comment by sstrickr...@googlemail.com on 1 Mar 2015 at 4:57

GoogleCodeExporter commented 9 years ago
No response for a long time. If this issue is still valid for you, please 
provide the requested information and add a new comment to reopen this issue.

Original comment by sstrickr...@googlemail.com on 6 Apr 2015 at 1:49