When connecting to a ssh host with a password-protected private key and no password specified, remote-edit-ni throws an error instead of prompting for the password.
Steps to reproduce:
Add a ssh host to remote-edit-ni that has a password-protected private key
Leave the "Private key passphrase:" field blank
Attempt to connect to the host.
Rather than prompting for the passphrase, this error is thrown.
Atom: 1.34.0 x64
Electron: 2.0.16
OS: Mac OS X 10.14.3
Thrown From: remote-edit-ni package 3.5.1
Stack Trace
Uncaught Error: Malformed private key (expected sequence). Bad passphrase?
At /Users/gavinsyancey/.atom/packages/remote-edit-ni/node_modules/ssh2-streams/lib/utils.js:322
Error: Malformed private key (expected sequence). Bad passphrase?
at genPublicKey (/packages/remote-edit-ni/node_modules/ssh2-streams/lib/utils.js:322:13)
at Client.connect (/packages/remote-edit-ni/node_modules/ssh2/lib/client.js:155:29)
at /packages/remote-edit-ni/lib/model/sftp-host.coffee:166:23
at fn (/packages/remote-edit-ni/node_modules/async/lib/async.js:746:34)
at /packages/remote-edit-ni/node_modules/async/lib/async.js:1213:16
at /packages/remote-edit-ni/node_modules/async/lib/async.js:166:37
at /packages/remote-edit-ni/node_modules/async/lib/async.js:706:43
at /packages/remote-edit-ni/node_modules/async/lib/async.js:167:37
at /packages/remote-edit-ni/node_modules/async/lib/async.js:1209:30
at /packages/remote-edit-ni/lib/model/sftp-host.coffee:125:17
at FSReqWrap.cb [as oncomplete] (fs.js:312:19)
When connecting to a ssh host with a password-protected private key and no password specified, remote-edit-ni throws an error instead of prompting for the password.
Steps to reproduce:
Atom: 1.34.0 x64 Electron: 2.0.16 OS: Mac OS X 10.14.3 Thrown From: remote-edit-ni package 3.5.1
Stack Trace
Uncaught Error: Malformed private key (expected sequence). Bad passphrase?
Commands
Non-Core Packages