Is is support private key in OpenSSH format?

Apr 18, 2013 at 4:40 AM
Is is support private key in OpenSSH format?
Apr 18, 2013 at 11:42 AM
I have been using keys generated by OpenSSH with no problem.
Apr 19, 2013 at 6:58 AM
Edited Apr 19, 2013 at 7:10 AM
Please advise because It don't work for this key format

---- BEGIN SSH2 ENCRYPTED PRIVATE KEY ----
Subject: ln81
Comment: "2048-bit rsa, ln81@moeuxap42, Wed Mar 27 2013 10:03:36"
P2/56wAAA+4AAAA3aWYtbW9kbntzaWdue3JzYS1wa2NzMS1zaGExfSxlbmNyeXB0e3JzYS
1wa2NzMXYyLW9hZXB9fQAAAARub25lAAADnwAAA5sAAAARAQABAAAH/AncZiafHL2UZJr0
LjB66WoBTWzZSVj2yQkQoNq7DCtu3tusDrZXKZKvhFUNSy73QNs0Edto9KNvfISYri3z2K
BNoDbHIEsn5bkurVMJ9anbpToTNDyAp/pSizEnAuvAEzOZIhsyI2ofi+TCemKHeYlDy3vK
9qyqRkoPSqTkeFlfEJ+IPYfDtOevgjyx6kZoPrx/vf0N+dzHoYrkKFHK4uUJ/lwBSxVTtv
lAQJl/ZPDYEVGCBP1i9ErJY0u/J+xr49lk/jByMN71h0FT/hWWV+FDv/cahLkgAIVbMOHh
rn1wWPtcbxfxTfrAdlXWsbnuD8+/c1n5hmFYJSKLIahLHJkAAAgAtTOlWDMPlv8wFLqQZS
TZ1+1L6s3yvSW4SC+DDvV6KqO/uZQkx4lqL6rxbw0d18Nn3HbMdhAnXO1MV8zOMeNm1Y+P
MTqc24OZJXYmGCNdn2hWQiOyUGKD7al4rLcKtr/KSSq5JE1HMA2jpG/FNqZRF3Wp6EXyQ3
f5tRq3aKBMys/nyWdMvuOpsGnCqPSiAedXbLh3lW3aukAIORe9f/HrfBL0X8d0bSBk1sgy
jQaBL0Q/0CtugEdGB9OxK7KSN6fiUL/Ve0B4o9L2tjdukSi66t5ws2J7NCu7jrcgKUKdFt
aepVLfcp2AoRMWfTMMHxaHUZL8wWLwiYZeAgbVYgxWUQAAA/0f8dGUwoYKzQU0l0QPrzZ/
eWBGDBv4HpmWKqAdhIY4FNYhPVCHHyxEKCEbMI9y4XzXIbgHHvKapc6vS0X3yvW8s9tf1o
DM+Y54CcX2T7jd2WQWR8HWU7i91MPAuOltr4d6oTu4gbm3O7IOOJTyZHYq/Wu4/TGLCBrC
CCLE37Hn8gAABADNRKGZ7Es20yJzrILhy1z5eeE+MdPqoS9/h4DTtGU2qMsg+yWp1pX0EC
Sc8DAQHJI2Tf91ghCOdm8au7BS7Vrov+GsoofCMqXFZoPf7gmFgIbMX9pfm1i2Qqh9temH
QK47b2NxE3QXjpg4bWcO3c8AC7A2OWVY0N1aVEo2SeumdQAABADh/FR/m6GyLmUjZs9aVd
7gY7b/DBruSPpCYnBRH+lAg0FD6Cf52I5d5odQb4J28RotSPCKLEOWrQPS1HeO0N0o2Q2Q
SNlZcQpK6S7hP8juvb2ECUcEQiu6qDTNzMe0vyoLTWCO5YDqKas0UYtY+s6+KWgZFR35tY
k3vacSxYbM7Q==
---- END SSH2 ENCRYPTED PRIVATE KEY ----
Apr 19, 2013 at 9:39 AM
You are talking about two different things.
Darkoperator seems to talk about keys generated by ssh-keygen in PEM format, which works great.
wangsa is talking about the OpenSSH format, which seems to be not fully supported by this library.
Just took a quick look at PrivateKeyFile.cs and it looks like OpenSSH Format is just supported without
password.

Do you get any exceptions?
And please get used to paste code, when reporting problems on the internet.
Maybe there is a bug in your implementation ;)
Apr 19, 2013 at 10:42 AM
Sorry for my wrong,
Exactly, my key is ssh.com SSH-2 private key.
This library supports it?