ssh2 icon indicating copy to clipboard operation
ssh2 copied to clipboard

ecdsa-sha2-nistp256 private key support

Open ctoesca opened this issue 11 months ago • 1 comments

Hello, When I use 'ecdsa-sha2-nistp256' private key (ppk format), with passphrase:

PuTTY-User-Key-File-2: ecdsa-sha2-nistp256
Encryption: aes256-cbc
Comment: ctop@xmoeexplme1
Public-Lines: 3
AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBInz3Pl1DVKF
7aPjxqwVmlpz4AodXMM0OWIYVtZ9xCFhUSDV+uhUQ8xFgnyG/ZTXk9iAwyQZ37U2
pKKhsPyLiNA=
Private-Lines: 1
eR+n+wx+TD2qG9LMQNlaGKIzUz+yWvtyEQG5iCxZEI4KfM81fy7tyIIBdcchSM2D
Private-MAC: 00d4195a1fe6f4f3145da5417e9bf45eb6d02829

On client.connect(), I have this error:

Cannot parse privateKey: Unsupported key format

ctoesca avatar Mar 09 '24 14:03 ctoesca

Hello, When I use 'ecdsa-sha2-nistp256' private key (ppk format), with passphrase:

PuTTY-User-Key-File-2: ecdsa-sha2-nistp256
Encryption: aes256-cbc
Comment: ctop@xmoeexplme1
Public-Lines: 3
AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBInz3Pl1DVKF
7aPjxqwVmlpz4AodXMM0OWIYVtZ9xCFhUSDV+uhUQ8xFgnyG/ZTXk9iAwyQZ37U2
pKKhsPyLiNA=
Private-Lines: 1
eR+n+wx+TD2qG9LMQNlaGKIzUz+yWvtyEQG5iCxZEI4KfM81fy7tyIIBdcchSM2D
Private-MAC: 00d4195a1fe6f4f3145da5417e9bf45eb6d02829

On client.connect(), I have this error:

Cannot parse privateKey: Unsupported key format

Debugging + troubleshooting, I am also experiencing an error where this also does not work with ecdsa-sha2-nistp521.

cdrage avatar Aug 06 '24 18:08 cdrage