Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [egit-dev] not accepting passphrase

On 25/10/2013 01:48 PM, Alex Blewitt wrote:

On 25 Oct 2013, at 04:54, Aniyan Rajan <aniyan.rajan6@xxxxxxxxx> wrote:

On 25/10/2013 03:09 AM, Matthias Sohn wrote:
On Thu, Oct 24, 2013 at 3:32 PM, Aniyan Rajan <aniyan.rajan6@xxxxxxxxx> wrote:
Hello egit-devs,

I am using Egit-2.1.0, which works with Eclipse-Helios. Everything works fine except one. It doesn't accept the passphrase to unlock the sshkey. I tried using an sshkey with no passphrase too. Still it doesn't work, the same passphrase dialog comes again and again. Could you please let me know why this happens ? The Password Authentication works with egit, but the key-based authentication doesn't work.

did you try with a newer version ? latest release is 3.1 ...


I would like to use the latest version of Egit. But it won't work with the version of Eclipse For PHP, I am using.

I am using:
Eclipse for PHP Developers
Version: Helios Release
Build id: 20100617-1415


So that is the reason I am using Egit-2.1.0. But the SSH-Keys doesn't work in it.

It may be that the jsch library in Helios (which is what JGit uses) is too old and thus cannot use private keys. You could try installing a later version of that in the dropins folder (and keeping the same EGit plugin) to see if that solves the issue.
Alex, the dropins folder in the eclipse is empty here. Can I install jsch here ?


Alternatively set GIT_SSH to point to a native ssh executable which will have private key support.
Yes, I have already done an export in .bashrc

You should also check the permissions of the ~/.ssh/ folder to vet if that group and other are set to no permissions, without which it will refuse to work.
.ssh folder is having
drwx------ 2 ar group1

the contents of .ssh/
-rw-r--r-- 1 ar group1   17 2013-05-02 17:18 config
-rw------- 1 ar group1 1766 2013-10-24 18:15 id_rsa
-rw-r--r-- 1 ar group1  414 2013-05-02 09:30 id_rsa.pub
-rw-r--r-- 1 ar group1 4824 2013-10-24 16:29 known_hosts

Here group and others are set to no permissions for .ssh/ and id_rsa.

Thanks.

Back to the top