Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » How to clone a SSH repository
How to clone a SSH repository [message #1384809] Mon, 02 June 2014 08:50 Go to next message
Bhushan Nagaraj is currently offline Bhushan NagarajFriend
Messages: 1
Registered: June 2014
Junior Member
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 21:59 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 612
Registered: July 2009
Senior Member
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: Fri Dec 19 07:28:37 GMT 2014

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

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