Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Jgit clone repository(UnsupportedCredentialItem problem)
Jgit clone repository [message #767281] Sat, 17 December 2011 14:37
marek.kratky is currently offline marek.kratkyFriend
Messages: 1
Registered: December 2011
Junior Member
I'm trying to clone Git repository with JGit and I have problem with UnsupportedCredentialItem.

My code:

FileRepositoryBuilder builder = new FileRepositoryBuilder();
Repository repository = builder.setGitDir(PATH).readEnvironment().findGitDir().build();

Git git = new Git(repository);              
CloneCommand clone = git.cloneRepository();
UsernamePasswordCredentialsProvider user = new UsernamePasswordCredentialsProvider(login, password);                

It will occur Exception:

 org.eclipse.jgit.errors.UnsupportedCredentialItem: ssh:// Passphrase for C:\Users\Marek\.ssh\id_rsa at

But if I delete file known_hosts in .ssh\ It will occur different Exception

org.eclipse.jgit.errors.UnsupportedCredentialItem: ssh:// The authenticity of host '' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting?
at org.eclipse.jgit.transport.UsernamePasswordCredentialsProvider.get(

Is there any possibility to type "yes" to that question or just skip it?

Thank you!
Previous Topic:Converting cloned project to a Java project
Next Topic:Git Repositories View is empty
Goto Forum:

Current Time: Tue Dec 01 12:59:40 GMT 2015

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

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