Our project needs to send files to remote server using sFTP. So we created a ssh2 Client:
var Client = require('ssh2');
and connecting with:
var conn = new Client();
conn.on('ready', function() {
conn.sftp(function(err, sftp) {
var writeStream = sftp.createWriteStream( "/test.json" );
...
}).on('error', function(err){ console.log(err, "ERROR"); conn.end() }).
connect(connSettings);
The issue here is the process fails on Edge(trial version) and success with Node locally. The error message on Edge:
{ [Error: Handshake failed: signature verification failed] message: 'Handshake failed: signature verification failed', level: 'protocol' } |
We tried with local installed Trireme, it works sometimes but failed most of the time:
> trireme test.js
Any clues?