Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » 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
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: 1184
Registered: July 2009
Senior Member
This was answered on the mailing list
Previous Topic:An extra HEAD
Next Topic:How to automatically open/close or import/delete projects when checking out branches
Goto Forum:

Current Time: Sat Sep 18 20:30:39 GMT 2021

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

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

Back to the top