<BUG>import org.eclipse.jgit.api.errors.InvalidRemoteException;
import org.eclipse.jgit.api.errors.TransportException;</BUG>
import org.eclipse.jgit.errors.UnsupportedCredentialItem;
import org.eclipse.jgit.transport.CredentialItem;
import org.eclipse.jgit.transport.CredentialsProvider;
<BUG>import org.eclipse.jgit.transport.URIish;
public class CloneRemoteRepositoryWithAuthentication {</BUG>
private static final String REMOTE_URL = "ssh://<user>:<pwd>@<host>:22/<path-to-remote-repo>/";
<BUG>public static void main(String[] args) throws IOException, InvalidRemoteException, TransportException, GitAPIException {
CredentialsProvider allowHosts = new CredentialsProvider() {</BUG>
@Override

package org.dstadler.jgit.porcelain;
import org.eclipse.jgit.api.Git;
import org.eclipse.jgit.api.errors.GitAPIException;
import org.eclipse.jgit.errors.UnsupportedCredentialItem;
import org.eclipse.jgit.transport.CredentialItem;
import org.eclipse.jgit.transport.CredentialsProvider;
import org.eclipse.jgit.transport.URIish;
import java.io.File;
import java.io.IOException;
public class CloneRemoteRepositoryWithAuthentication {
private static final String REMOTE_URL = "ssh://<user>:<pwd>@<host>:22/<path-to-remote-repo>/";
public static void main(String[] args) throws IOException, GitAPIException {
CredentialsProvider allowHosts = new CredentialsProvider() {
@Override
