Closed pallxk closed 5 years ago
Any plans to support this? Unless the private key was generate on windows via putty or similar openssh format is the more common.
I use vscode on MAC and would love to be able to use my "id_rsa".
I'm unsure if just upgrading ssh2 does it, I think we would need changes in the extension side too.
Doesn't look like updating the dep is enough as I get
Cannot parse privateKey: error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt
the passphrase is correct!
Using a PEM RSA key for sftp connection is fine, while using the same key encoded in OpenSSH key format will result in an error.
Output from console:
Here is a comparison for the same key in both formats.
By the way, I've tested it with OpenSSH_7.4p1, and it accepts both format.
Seems simply upgrade
ssh2
dependency to0.7.1
or later will fix this, see commit.I'd like to help if PR welcomed.