SmartGit Hg "Authentication Failed"
Asked Answered
C

9

23

I am using SmartGit Hg for a couple of months. I am using Bitbucket repo. I created another bitbucket account then cloned the current repository to the SmartGit. When I tried to commit and pushed (ofcourse it will ask for password), it says "Authentication Failed". Please help...Thanks in advance..

Cyclamen answered 2/8, 2013 at 15:24 Comment(3)
Can you push to BitBucket from command line?Lase
No, I haven't tried..Cyclamen
I switched to "use system SSH client" in preferences and it worked for me.Outlook
G
20

Perhaps SmartGit remembers wrong account credentials to authenticate you on BitBucket. Goto Edit menu -> Preferences -> Authentication and remove credentials for the repository that fails. Then next time you push SmartGit will ask you for both login and password.

Grigri answered 23/9, 2015 at 14:36 Comment(5)
I am not getting the dialog box to enter the credentials againEzzo
and I dont have this repo thereOutlook
For some reason, this is not working. Updating, removing then readding credentials will not work for me. My solution is below.Involute
@Involute The solution provided by you below works perfectly.Luing
its not remembering wrong credential, reenter it again will result in same resultBeggs
R
29

This works for me. Go to Edit>Preferences>Hosting Providers. On your Hosting Providers(I use Bitbucket for example) select it, click delete and click add. Select hosting, click Generate API Token automatically opens browser and generates token then copy go back to your smartgit then paste the token and finally click add

Roseanneroseate answered 1/12, 2016 at 6:7 Comment(7)
Thanks ! It worked for me. Github + Smartgit 20.2.4 on Ubuntu 20.04.2 LTSMicrogamete
Also, remove credentials from Edit>Preferences>Authentication. It works for meHelicopter
this is working, no user/password request againBeggs
SmartGit still asks for a password :(Broach
Check that your token has not expired, thanks man, it worked for me.Indolence
Did not work for me. it has before, but no more. After token had been copied to smartgit, I get a list of repos. I select the one I want, click OK. After a few seconds, the output window says "Add Remote Repository: Authentication using OAuth failed; check your GitHub Hosting Provider configuration in the Preferences."Badoglio
Worked for me by going to SmartGit > Preferences... > Hosting Providers > Select the one I want > Edit > Generate Token > (opens the github site) > Approve > Done.Siegfried
H
21

None of the answers given ended up resolving my issue on SmartGit.

I went in Edit ->Preferences -> Authentication but the list of known credentials was empty so was the list of Hosting Providers.

The reason was that SmartGit was storing my credential in Windows Credential Manager.

To resolve the issue, I went to Control Panel -> Credential Manager -> windows Credentials, select the specific credential you wish to update and choose to edit it and then update your credentials

Change your credentials in Windows Credential Manager

Haematoid answered 20/5, 2019 at 10:0 Comment(3)
For completion's sake: I removed the credentials and then SmartGit used the API key I had stored in preferences/hosting providers.Norty
I had one git credential stored in the Windows Credential Manager. To avoid the 'repository not found' error I had to delete this credential. Then, the next time I try to push smartgit simply pops up the GitHub username/password interface. But then, I immediately get an email saying that GitHub has added a new personal access token. Not super clear what's going on here, so a bit more documentation would be helpful.Saxena
This is the only solution that helped me in the end, I tried all the others first, then I tried this and it did the job immediately. Thank you!Absolute
G
20

Perhaps SmartGit remembers wrong account credentials to authenticate you on BitBucket. Goto Edit menu -> Preferences -> Authentication and remove credentials for the repository that fails. Then next time you push SmartGit will ask you for both login and password.

Grigri answered 23/9, 2015 at 14:36 Comment(5)
I am not getting the dialog box to enter the credentials againEzzo
and I dont have this repo thereOutlook
For some reason, this is not working. Updating, removing then readding credentials will not work for me. My solution is below.Involute
@Involute The solution provided by you below works perfectly.Luing
its not remembering wrong credential, reenter it again will result in same resultBeggs
I
2

An easier approach to re-installing, but you will need to set it up again.

Delete: c:\Users\{YOUR_USER_NAME}\AppData\Roaming\syntevo

Once you re-launch SmartGit, it may noticed an issue with the credential helper. If so, then force it to use SmartGit by adding this to your .gitconfig

[credential]
  helper=

That file is located: c:\Users\{YOUR_USER_NAME}\.gitconfig

Re-launch SmartGit, do a PULL and it will prompt you to set a Master Password. Once complete, it will then ask you for the project credentials.

Involute answered 30/3, 2019 at 5:14 Comment(0)
O
1

I was getting a similar error while authenticating with Git over HTTPS, after much frustration I uninstalled SmartGit and deleted everything in my SmartGit AppData folder.

(on Windows Delete c:\Users\{YOUR_USER_NAME}\AppData\Roaming\syntevo\SmartGit)

Once I reinstalled, all worked fine.

Oid answered 19/9, 2017 at 14:2 Comment(0)
U
0

In my case, myaccount@ at the beginning of the repository URL was missing.

After selecting and opening the repository on the left pane, I had to click on the Remote menu, then Properties....

In the field URL or path, I had something like https://github.com/org/repo.git, and I modified it to https://[email protected]/org/repo.git. It asked my password and... bingo.

Unfailing answered 3/1, 2018 at 12:43 Comment(0)
I
0

The first solution works only if you disable restriction on github

in Github, in the organisation : go to : Third-party => oAuth application => click on disable restriction

Intravasation answered 29/1, 2023 at 19:31 Comment(0)
T
-1

I used these SmartGit troubleshoot recommendations: http://www.syntevo.com/doc/pages/viewpage.action?pageId=6979745

Specifically, I simply redid pull / fetch of each origin from the GIT-Shell tool. It worked, and then SmartGit started to accept credentials just OK.

Previous on these thread recommendations did not work for me, and I did not want to reinstall SmartGit.

In Git-Shell:

1  git pull origin1 branch
2  git pull origin2 branch
Taishataisho answered 25/6, 2018 at 4:59 Comment(0)
D
-1

Un My case it was cause miss-configuration with SSH client.

SmartGit > Preferences > Authentication

Changed: "Use Smartgit as SSH Client" to "Use system SSH Client"

Denysedenzil answered 30/1, 2021 at 20:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.