Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » SSH2 Key Import(Import Keys into SSH2)
SSH2 Key Import [message #641159] Wed, 24 November 2010 13:01 Go to next message
No real name is currently offline No real nameFriend
Messages: 1
Registered: November 2010
Junior Member
Hello,
i´m trying to import a private and public key(which i generated in SSH Secure Shell) into Preferences/SSH2.When i just added the private key and load existing key under "Key Management" the error"failed to load given file" occured. How can i import the keys? Thank You for your reply.
Re: SSH2 Key Import [message #647814 is a reply to message #641159] Sun, 09 January 2011 16:23 Go to previous messageGo to next message
Groschensammler  is currently offline Groschensammler Friend
Messages: 1
Registered: January 2011
Junior Member
Got the same problem!

Generated keygen with a passphrase like this:
ssh-keygen
ssh-keygen -t rsa
ssh-keygen -t rsa -b 1024
ssh-keygen -t rsa -b 2048
ssh-keygen -t dsa

Every time I did "Load existing key" I got this Error message:
"failed to decrypt id_rsa"

It works fine if I use an empty passphrase.

-------------------------------
Ubuntu Maveric 10.04
openssh-client (ssh-keygen) Version 1:5.5p1-4ubuntu4
Eclipse Version: 3.6.1 Build id: M20100909-0800
Egit v0.10.1

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

[Updated on: Sun, 09 January 2011 18:38]

Report message to a moderator

Re: SSH2 Key Import [message #654016 is a reply to message #641159] Sat, 12 February 2011 23:00 Go to previous messageGo to next message
James  is currently offline James Friend
Messages: 1
Registered: February 2011
Junior Member
I had this same problem and was unable to find a solution to get my existing key to import. I did find a workaround though.

I make a copy of my existing key to a new directory. I then use ssh-keygen to remove the passphrase. I can then import the new key with the empty passphrase into Key Management in Eclipse. Once imported, I can add the passphrase back and save the key from Key Management. This new key with passphrase now works with Eclipse.
Re: SSH2 Key Import [message #735076 is a reply to message #654016] Mon, 10 October 2011 21:08 Go to previous message
Fabio Rodriguez is currently offline Fabio RodriguezFriend
Messages: 1
Registered: October 2011
Junior Member
thx, James, I used that workaround to get my key imported.

For those needing help on the command line, this should help you copy your key & change the passphrase to blank so you can import it from Eclipse.
cd ~/.ssh
cp id_rsa ~/Desktop
ssh-keygen -f ~/Desktop/id_rsa -p -P YOUR_OLD_PASSPHRASE_GOES_HERE -N ''

Then add back your passphrase via the Eclipse GUI and overwrite your ~/.ssh key
Previous Topic:pre-build stripping backslashes from SubWCRev cmd
Next Topic:Loading external changed files
Goto Forum:
  


Current Time: Tue Mar 19 02:38:42 GMT 2024

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

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

Back to the top