Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » Authentication Error when cloning Private Repo(Unable to Clone Private Repo in Egit(Works in command line))
Authentication Error when cloning Private Repo [message #1855147] Thu, 29 September 2022 11:38 Go to next message
Eclipse UserFriend
Hello there.

I created a private github repo for a project of mine.

I am able to clone the repository using the windows command line client but cannot clone using Egit.

I know that I am using the correct credentials so I don't really know what is going on.

The following is from the error log.


eclipse.buildId=4.25.0.I20220831-1800
java.version=17.0.4.1
java.vendor=Eclipse Adoptium
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_CA
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product

org.eclipse.egit.ui
Error
Thu Sep 29 11:22:19 EDT 2022
https://github.com/Marcipicus/Django2Java.git: not authorized

org.eclipse.jgit.api.errors.TransportException: https://github.com/Marcipicus/Django2Java.git: not authorized
at org.eclipse.jgit.api.LsRemoteCommand.execute(LsRemoteCommand.java:192)
at org.eclipse.jgit.api.LsRemoteCommand.call(LsRemoteCommand.java:131)
at org.eclipse.egit.core.op.ListRemoteOperation.run(ListRemoteOperation.java:116)
at org.eclipse.egit.ui.internal.clone.SourceBranchPage$9.run(SourceBranchPage.java:377)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Caused by: org.eclipse.jgit.errors.TransportException: https://github.com/Marcipicus/Django2Java.git: not authorized
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:685)
at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:465)
at org.eclipse.jgit.api.LsRemoteCommand.execute(LsRemoteCommand.java:170)
... 4 more
Re: Authentication Error when cloning Private Repo [message #1855202 is a reply to message #1855147] Fri, 30 September 2022 15:46 Go to previous messageGo to next message
Eclipse UserFriend
Hello there.

Solved my own problem(eventually rtfm'd).

You have to generate a Personal Access Tokens for your account under developer settings.

The users guide is at https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token

Once the token is generated you use it in place of your github account's password.
Re: Authentication Error when cloning Private Repo [message #1855210 is a reply to message #1855202] Sat, 01 October 2022 09:39 Go to previous message
Eclipse UserFriend
Glad you figured this out. It's mentioned at https://wiki.eclipse.org/EGit/User_Guide#GitHub_Tutorial .
Previous Topic:Getting Transport Exception: cannot git upload pack
Next Topic:git diff and jgit-cli diff have different results
Goto Forum:
  


Current Time: Fri May 16 13:07:19 EDT 2025

Powered by FUDForum. Page generated in 0.07517 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top