yongkangchen / remote-sync

Upload your files to remote host after every change. Both SCP/SFTP and FTP are supported.
https://atom.io/packages/remote-sync
MIT License
237 stars 71 forks source link

Uncaught InvalidAsn1Error: Expected 0x2: got 0x9c #471

Open cyent opened 6 years ago

cyent commented 6 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.23.3 x64 Electron: 1.6.15 OS: Mac OS X 10.13.2 Thrown From: remote-sync package 4.1.8 User: root

Stack Trace

Uncaught InvalidAsn1Error: Expected 0x2: got 0x9c

At /Users/chencheng/.atom/packages/remote-sync/node_modules/asn1/lib/ber/reader.js:229

InvalidAsn1Error: Expected 0x2: got 0x9c
    at newInvalidAsn1Error (/packages/remote-sync/node_modules/asn1/lib/ber/errors.js:7:13)
    at Reader._readTag (/packages/remote-sync/node_modules/asn1/lib/ber/reader.js:229:11)
    at Reader.readInt (/packages/remote-sync/node_modules/asn1/lib/ber/reader.js:145:15)
    at genPublicKey (/packages/remote-sync/node_modules/ssh2-streams/lib/utils.js:437:19)
    at Client.connect (/packages/remote-sync/node_modules/ssh2/lib/client.js:239:29)
    at ScpTransport.module.exports.ScpTransport._getConnection (/packages/remote-sync/lib/transports/ScpTransport.coffee:179:16)
    at ScpTransport.module.exports.ScpTransport.fetchFileTree (/packages/remote-sync/lib/transports/ScpTransport.coffee:119:6)
    at Object.run (/packages/remote-sync/lib/commands/DownloadAllCommand.coffee:12:15)
    at RemoteSync.downloadFolder (/packages/remote-sync/lib/RemoteSync.coffee:86:17)
    at handleEvent (/packages/remote-sync/index.coffee:46:14)
    at /packages/remote-sync/index.coffee:108:44)
    at CommandRegistry.handleCommandEvent (/Applications/Atom 2.app/Contents/Resources/app/src/command-registry.js:388:36)
    at CommandRegistry.dispatch (/Applications/Atom 2.app/Contents/Resources/app/src/command-registry.js:273:23)
    at AtomEnvironment.module.exports.AtomEnvironment.dispatchContextMenuCommand (/Applications/Atom 2.app/Contents/Resources/app/src/atom-environment.js:1399:34)
    at EventEmitter.outerCallback (/Applications/Atom 2.app/Contents/Resources/app/src/application-delegate.js:348:31)
    at emitThree (events.js:116:13)
    at EventEmitter.emit (events.js:194:7)

Commands

     -0:13.5.0 application:reopen-project (atom-pane.pane.active)
     -0:06.5.0 remote-sync:download-folder (span.name.icon.icon-file-directory)

Non-Core Packages

busy-signal 1.4.3 
go-debug 1.5.0 
go-plus 5.5.5 
go-signature-statusbar 1.2.1 
hyperclick 0.1.3 
intentions 1.1.5 
linter 2.2.0 
linter-ui-default 1.6.3 
remote-sync 4.1.8