I took the example from the frontpage, and added a private key, but exists without any output.
var sequest = require('sequest')
var fs = require('fs')
var seq = sequest('docker@192.168.99.106', {
privateKey: fs.readFileSync(__dirname + '/key.file')
})
seq.pipe(process.stdout) // only necessary if you want to see the output in your terminal
seq.write('docker ps')
seq.end()
But this example is fine:
var sequest = require('sequest')
var fs = require('fs')
sequest('docker@192.168.99.106', {
command: 'docker ps',
privateKey: fs.readFileSync(__dirname + '/key.file')
}, function (err, stdout) {
console.log(err, stdout)
})
I took the example from the frontpage, and added a private key, but exists without any output.
But this example is fine: