wrong path to ssh private key [message #659772] |
Tue, 15 March 2011 14:31 |
Lars Fischer 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
|
|
|
Powered by
FUDForum. Page generated in 0.03024 seconds