npm.io
1.0.0 • Published 10 years agoCLI

ssh-transport-stream

Licence
MIT
Version
1.0.0
Deps
1
Vulns
0
Weekly
0
Stars
5

ssh-transport-stream

Run a command on the other side of an ssh connection and get back results.

cli

Install

npm install -g ssh-transport-stream
ssh-transport-stream [url] [command]
$ ssh-transport-stream ssh://me:password@localhost:~ ls
Applications/
Documents/
Downloads/
dev/

JS API

See cli.js for example.

npm install ssh-transport-stream
ssh-transport-stream(url, command)
var ssh = require('ssh-transport-stream')
var stream = ssh(url, cmd)
stream.on('data', function (data) {
  console.log(data.toString())
})