Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] Cloning and pulling via secured connection

On Thu, May 17, 2012 at 3:30 AM, Borislav Kapukaranov
<b.kapukaranov@xxxxxxxxx> wrote:
> I'm exploring JGit's api and wondered how I could clone a repo from SSH but
> without having my public key configured(this already works great).
> Normally if you don't have you key configured git would ask for a password
> for your user.
> How is this achieved with Jgit, can I make it prompt me for a password in
> such SSH connection?
> Probably the same question applies to HTTPS connections?

Install a credential provider that can do the prompting, e.g.:

  https://github.com/eclipse/jgit/tree/master/org.eclipse.jgit.console/src/org/eclipse/jgit/console


Back to the top