title: JGit clone repository
body: <p>I'm trying to clone Git repository with JGit and I have problem with UnsupportedCredentialItem.</p>
  
  <p>My code:</p>
  
  <pre><code>FileRepositoryBuilder builder = new FileRepositoryBuilder();
  Repository repository = builder.setGitDir(PATH).readEnvironment().findGitDir().build();
  
  Git git = new Git(repository);              
  CloneCommand clone = git.cloneRepository();
  clone.setBare(false);
  clone.setCloneAllBranches(true);
  clone.setDirectory(PATH).setURI(url);
  UsernamePasswordCredentialsProvider user = new UsernamePasswordCredentialsProvider(login, password);                
  clone.setCredentialsProvider(user);
  clone.call();   
  </code></pre>
  
  <p>It will occur Exception:</p>
  
  <pre><code> org.eclipse.jgit.errors.UnsupportedCredentialItem: ssh://git@github.com:22: Passphrase for C:\Users\Marek\.ssh\id_rsa at
   org.eclipse.jgit.transport.UsernamePasswordCredentialsProvider.get(UsernamePasswordCredentialsProvider.java:110)....
  </code></pre>
  
  <p>But if I delete file known_hosts in .ssh\ It will occur different Exception</p>
  
  <pre><code>org.eclipse.jgit.errors.UnsupportedCredentialItem: ssh://git@github.com:22: The authenticity of host 'github.com' 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(UsernamePasswordCredentialsProvider.java:110)....
  </code></pre>
  
  <p>Is there any possibility to type "yes" to that question or just skip it?</p>
  
  <p>Thank you!</p>