GitHub Auth Fail on private repo
See original GitHub issueUsing 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.
taylor:tmp taylor$ g8 stackmob/service-template
org.eclipse.jgit.api.errors.JGitInternalException: Exception caught during execution of fetch command
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:138)
at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:175)
at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:121)
at giter8.Apply$class.clone(apply.scala:38)
at giter8.Giter8.clone(giter8.scala:3)
at giter8.Apply$class.inspect(apply.scala:21)
at giter8.Giter8.inspect(giter8.scala:3)
at giter8.Giter8.ghInspect(giter8.scala:56)
at giter8.Giter8.run(giter8.scala:24)
at giter8.Giter8.run(giter8.scala:12)
at giter8.Giter8.run(giter8.scala:3)
at xsbt.boot.Launch$.run(Launch.scala:54)
at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:43)
at xsbt.boot.Launch$.launch(Launch.scala:68)
at xsbt.boot.Launch$.apply(Launch.scala:14)
at xsbt.boot.Boot$.runImpl(Boot.scala:25)
at xsbt.boot.Boot$.main(Boot.scala:15)
at xsbt.boot.Boot.main(Boot.scala)
Caused by: org.eclipse.jgit.errors.TransportException: git@github.com:stackmob/service-template.g8.git: Auth fail
at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:141)
at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:121)
at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:248)
at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:147)
at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:127)
at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:113)
at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1062)
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:129)
... 17 more
Caused by: com.jcraft.jsch.JSchException: Auth fail
at com.jcraft.jsch.Session.connect(Session.java:461)
at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:116)
... 24 more
Error during sbt execution: org.eclipse.jgit.api.errors.JGitInternalException: Exception caught during execution of fetch command
Issue Analytics
- State:
- Created 11 years ago
- Comments:20 (1 by maintainers)
Top Results From Across the Web
Unable to clone private repository github : Authentication failed
I have created a private repo in github and when I am trying to clone it using cmd (git), I am prompted with...
Read more >Cannot push to private/owned repo. "Authentication failed"
Authentication failed. Some common reasons include: You are not logged in to your account: see File > Options. You may need to log...
Read more >Authentication failed when cloning from GitHub - Documentation
If you see the Authentication failed error message when cloning a repository from GitHub, check if you have GitHub two-factor authentication ...
Read more >GitHub Authentication Failure when Clone, Fetch, Pull and Push
If you can directly login to the Github with the username and password, the issue might be mostly with Two Factor Authentication (2FA)....
Read more >The 'support for password authentication removed' GitHub error
If you still have trouble authenticating to GitHub after you generated the personal access token, check to make sure the password isn't cached...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
My workaround is to clone the repo locally and then use the file path with g8. E.g g8 file://pathtorepo