-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GitHub Auth Fail on private repo #94
Comments
Just realized I opened a similar issue 3 months ago: #82 |
In giter8 0.5.3 your github username and password are no longer used for private repo access. Instead, jgit is using ssh to try to fetch the private repo. In most configurations this works without you having to do anything. I assume that you can clone the repository in question using plain git, logged in as the same user? |
Correct, I can clone and push to it fine. Perhaps the fact that the repo is a private repo for our organization rather than an individual user makes a difference. |
I am also experiencing this issue with templates on a public github repo. |
Me too I suspect it is some kind of configuration problem on my system though. It works on my colleague's computer but not mine. I am able to clone the g8 template with no problems though Caused by: org.eclipse.jgit.errors.TransportException: Auth Fail |
+1 for this issue. Any workarounds? |
Same problem (public repos). MacOSX. Mountain Lion. Using ssh+git fine everywhere else. |
I have the same error on 'g8 scalatra/scalatra-sbt' which is a public repo. Also on MacOSX, Mountain Lion. |
My workaround is to clone the repo locally and then use the file path with g8. E.g g8 file://pathtorepo |
Same problem for me when running |
I've hit the same issue with g8 0.5.3. Here's the output of the error:
I initially thought this issue was caused by a recent upgrade of git to version 1.8.4, so I rolled back to 1.7.10.2 (the version installed on my machine by default). I had the same issue, so I wondered if this was a result of my corporate network blocking the
I tried with the
Apparently, https transport is broken in 0.5.3 on brew. I rolled back to the previous version and everything works. Here's how I rolled back:
Now, |
flurdy's workaround works great. |
Moreover, looks like 0.6.2 is still affected by this issue. |
Using ssh based access with an unprotected key works with 0.6.2. But one doesn't want unprotected keys... Looks like it will be fixed in 0.6.7: de3b084 As a side note, Homebrew folks have a hard time packaging giter8, see the discussion in Homebrew/legacy-homebrew#29614 |
Should be fixed in #141. |
SSH access to a private repo still doesn't work with g8 0.7.1, is this a known issue? I'm trying to access a g8 template in a github private repo and I get the same error as posted above |
I am getting this error if my ssh key is not stored in ~/.ssh/id_rsa. It seems that jgit only looks for a few file names as valid ssh host keys, and it doesn't check the ssh-agent: |
Getting same error trying to clone private repo locally with Java code. git clone works fine but inside Java exception error. I did try all varioation of URI with .git, without with :22, with moving Org name around still same error org.eclipse.jgit.api.errors.TransportException: ssh://github.com/Bisk/skyway-salesforce-dev: Auth fail |
Problem solved by using https with different credential provider user/password instead of SSH. Using this code instead As documented http://www.codeaffine.com/2014/12/09/jgit-authentication/ |
+1 still doesn't work despite the key is ~/.ssh/id_rsa |
Using 0.5.3 I receive a GitHub auth fail. I already ran
cs --auth user:pass
and I see the app with private repo access in account settings in GitHub. It still fails with the error below.The text was updated successfully, but these errors were encountered: