Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » How to clone a SSH repository
How to clone a SSH repository [message #1384809] Mon, 02 June 2014 04:50 Go to next message
Eclipse UserFriend
I am able to clone a repository using UsernamePasswordCredentialsProvider.

Git.cloneRepository().setURI(repoUrl).setCredentialsProvider(new UsernamePasswordCredentialsProvider(username, password))
.setDirectory(new File(tempFolderForGit)).call();

How do I clone a repository using SSH key and passphrase?

Thank you
Bhushan
Re: How to clone a SSH repository [message #1385043 is a reply to message #1384809] Tue, 03 June 2014 17:59 Go to previous message
Eclipse UserFriend
This was answered on the mailing list
https://dev.eclipse.org/mhonarc/lists/jgit-dev/msg02554.html
Previous Topic:An extra HEAD
Next Topic:How to automatically open/close or import/delete projects when checking out branches
Goto Forum:
  


Current Time: Wed Jul 02 10:17:41 EDT 2025

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

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

Back to the top