ssh-transport-stream

1.0.0 • Public • Published

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())
})

Readme

Keywords

none

Package Sidebar

Install

npm i ssh-transport-stream

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • karissa