Atom: 1.14.4 x64
Electron: 1.3.13
OS: Mac OS X 10.12.3
Thrown From: atom-commander package 0.8.7
Stack Trace
Uncaught InvalidAsn1Error: Expected 0x2: got 0xbf
At /Users/Kiko/.atom/packages/atom-commander/node_modules/asn1/lib/ber/reader.js:229
InvalidAsn1Error: Expected 0x2: got 0xbf
at newInvalidAsn1Error (/packages/atom-commander/node_modules/asn1/lib/ber/errors.js:7:13)
at Reader._readTag (/packages/atom-commander/node_modules/asn1/lib/ber/reader.js:229:11)
at Reader.readInt (/packages/atom-commander/node_modules/asn1/lib/ber/reader.js:145:15)
at genPublicKey (/packages/atom-commander/node_modules/ssh2-streams/lib/utils.js:437:19)
at Client.connect (/packages/atom-commander/node_modules/ssh2/lib/client.js:234:29)
at SFTPSession.module.exports.SFTPSession.connectWith (/packages/atom-commander/lib/fs/ftp/sftp-session.coffee:137:11)
at SFTPSession.module.exports.SFTPSession.connectWithPassphrase (/packages/atom-commander/lib/fs/ftp/sftp-session.coffee:74:6)
at InputDialog.callback (/packages/atom-commander/lib/fs/ftp/sftp-session.coffee:59:12)
at InputDialog.module.exports.InputDialog.confirm (/packages/atom-commander/lib/dialogs/input-dialog.coffee:52:6)
at /packages/atom-commander/lib/dialogs/input-dialog.coffee:27:70)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/app.asar/src/command-registry.js:259:29)
at /app.asar/src/command-registry.js:3:59
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:599:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:390:22)
at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/app.asar/src/window-event-handler.js:106:36)
at /app.asar/src/window-event-handler.js:3:59)
I improved the SFTP connection handling and also how passwords, passphrases and SSH keys are handled in v0.8.8. The changes may address this issue as well.
[Enter steps to reproduce:]
Atom: 1.14.4 x64 Electron: 1.3.13 OS: Mac OS X 10.12.3 Thrown From: atom-commander package 0.8.7
Stack Trace
Uncaught InvalidAsn1Error: Expected 0x2: got 0xbf
Commands
Non-Core Packages