This project is read-only.

SSH-2 private key

Apr 16, 2014 at 8:40 PM
I need to connect using sftp utilizing private key.
The key file is created using SSH-2 client.
I get "Invalid private key file." error message.

I just want to confirm if SSH-2 keys are supported!!
if not, are you aware of any open source library that support the use of SSH-2 generated keys?
Here is how the header of the key looks like..

---- BEGIN SSH2 ENCRYPTED PRIVATE KEY ----
Comment: "[2048-bit dsa,

and it ends with (showing last part of the encrypted key as well) :
sPhKT5RRC1HrFpK4GzMDgRv3+z5pRf+rPV+FT71busXPnsFIJ54t7xQcGCuzPvCS0myyMQ
AIdA==
---- END SSH2 ENCRYPTED PRIVATE KEY ----

Thank you.
Coordinator
Apr 20, 2014 at 9:20 AM
Edited Apr 20, 2014 at 9:20 AM
We currently do not support comments in a private key.
Please submit an issue for this.

Thanks!
Coordinator
Apr 21, 2014 at 7:52 PM
I've added support for single-line comments in SSH2 keys, and introduced support for SSH2 encrypted keys.
Are you using single-line or multi-line comments ?

Once you submit the issue, I'll commit the fix.
Deal ? :-)
Coordinator
May 2, 2014 at 10:30 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Marked as answer by drieseng on 5/2/2014 at 3:35 AM