EGit - SSH does not work with passphrase (when connected to GitHub)

I am using Eclipse Indigo RC4 with EGit (included). I have a project that I dedicated to my local repository, and now I want to push from it in the remote repository that I have on GitHub.

Pressing / pulling from command line tools works fine (I configured SSH authentication based on RSA key).

But when I try to click from EGit (via SSH pointing to GitHub), I get an invitation to enter my missing phrase. But when I enter the correct phrase phrase, it asks for the same thing again (note: the username is displayed as git because it is the default when using GitHub. I think this is not a problem).

In Eclipse settings, I double-checked to make sure it is configured to use the RSA tokens that I created.

+23
git eclipse github egit
Jun 11 2018-11-12T00:
source share
3 answers

I got it by clicking on this link http://www.eclipse.org/forums/index.php/t/197428/ .

I created a GIT_SSH environment variable that points to /usr/bin/ssh (which was the SSH implementation that I used on the command line) and started Eclipse. When this environment variable was present, Eclipse connected using my SSH tool for the shell and there was no prompt for the phrase, and it worked fine.

+22
Jun 11 '11 at 13:05
source share

It's even easier to upgrade the JSch package to 0.1.44 from the eclipse orbital repository (software site p2): http://download.eclipse.org/tools/orbit/downloads/drops/R20110523182458/repository/

The main problem is that JSch <0.1.44 does not support the new AES-128 encryption scheme:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=326526

+13
Aug 11 '11 at 20:20
source share

In Eclipse, Juno Jsch is already> 1.44, and yet the problem is still happening (for me). I also tried setting GIT_SSH, and that didn't work either. My previous keys were generated by ssh-keygen, I can only assume that this does not create a suitable key.

I worked like this:

  • Use Eclipse to create a new DSA key - create a 1024-bit key Eclipse-> Settings-> General-> Network Connections-> SSH2-> Key Management

    [Can work with RSA, I have not tried]

  • Copy generated public key to remote repo

  • Click the [Save Private Key] button without entering a passphrase

  • RESTART ECLIPSE

Eclipse / EGit will now synchronize with the remote Git Repo without requiring a passphrase - phew!

+1
Nov 27 '12 at 0:30
source share



All Articles