大家好,在使用node-webkit开发中使用了ssh2库链接远程主机,在连接的时候有时候会出现下面这个错误,平台是在windows下:
Uncaught node.js Error
Error: Initialization failed
at new DiffieHellman (crypto.js:438:21)
at Object.DiffieHellman (crypto.js:431:12)
at onKEXDH_GEX_GROUP (E:\work\Toki\node_modules\ssh2\lib\Connection.js:1628:22)
at Parser.eval (E:\work\Toki\node_modules\ssh2\lib\Connection.js:117:5)
at Parser.EventEmitter.emit (events.js:101:17)
at Parser.parsePacket (E:\work\Toki\node_modules\ssh2\lib\Parser.js:459:12)
at Parser.execute (E:\work\Toki\node_modules\ssh2\lib\Parser.js:249:14)
at Socket.eval (E:\work\Toki\node_modules\ssh2\lib\Connection.js:506:18)
at Socket.EventEmitter.emit (events.js:98:17)
at readableAddChunk (_stream_readable.js:156:16)