[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] SSH auth fails in OS X sandbox

On Sat, Sep 27, 2014 at 6:15 PM, Zach Oakes <zsoakes@xxxxxxxxx> wrote:
Admittedly, this is an uncommon use-case, but I package a few apps for the Mac App Store using an embedded JRE. Cloning an HTTPS git repo with jgit works fine, but SSH fails. The same exact code works with SSH perfectly when it isn't running in the OS X sandbox.

The problem is *not* that it can't read from ~/.ssh, because jgit is correctly using Java's user.home property, which is set to the app's private home directory. I am getting a dialog via CredentialsProvider asking if I want to trust a fingerprint, but after clicking "Yes", I get "Auth fail".

I would be grateful for any clues as to what is going on. I don't see any obvious permission errors in the Console app, so I have very little to go off of here. Thanks.

not sure what you are trying
- are you running JGit command line on an embedded JRE ?
- which JGit version are you using ?
- which embedded JRE on which platform ?
- are you using ssh with a key pair or username/password ?
- are you sure that the other party has your public key ?
- can you authenticate with the same keys using jgit command line on a full blown JDK on a different system ?
- did you try to debug ?