Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » wrong path to ssh private key
wrong path to ssh private key [message #659772] Tue, 15 March 2011 14:31
Lars Fischer is currently offline Lars FischerFriend
Messages: 105
Registered: July 2009
Senior Member
Hello,

I would like to use EGit/JGit, but have some trouble get it working
using my ssh key.

I don't want to store my private key local on a pc inside the default
"%HOME%/.ssh/id_rsa". So I use a configuration file "%HOME%/.ssh/config"
with entries like this:

Host github.com
User git
Hostname github.com
PreferredAuthentications publickey
IdentityFile absolute\path\mysshkey.ppk

Commandline tools and TortoiseGIT are working fine with this config. But
I don't know how to configure EGit.

I followed the EGit user guide (http://wiki.eclipse.org/EGit/User_Guide)
and configured Windows environment variable "HOME".
I set the Eclipse preferences for "SSH2 home" to the right folder and
added the path to my private key.

Trying to clone a repository inside the workspace, I get an error like this:

ssh://git@github.com/lfischer/gittest.git:
java.io.FileNotFoundException: c:\Users\lfischer\absolute\path\mysshkey.ppk

This is right, because "absolute\path\mysshkey.ppk" is an absolute path
and can not be added to the default path.

How can I change the used path to my key?

Regards,
Lars
Previous Topic:JGit API: How to generate diff against remote branch
Next Topic:spearce/jgit and jgit
Goto Forum:
  


Current Time: Sat Sep 18 11:19:06 GMT 2021

Powered by FUDForum. Page generated in 0.02244 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top