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

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:

User git
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 (
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:// 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?

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

Current Time: Wed Oct 05 18:47:32 GMT 2022

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

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

Back to the top