{"name":"ssh-exec","version":"1.1.0","description":"Execute a script over ssh using Node.JS","repository":{"type":"git","url":"git://github.com/mafintosh/ssh-exec.git"},"dependencies":{"duplexify":"^3.2.0","ssh2":"^0.4.6"},"devDependencies":{"standard":"^3.5.0"},"bugs":{"url":"https://github.com/mafintosh/ssh-exec/issues"},"scripts":{"test":"standard"},"homepage":"https://github.com/mafintosh/ssh-exec","main":"index.js","keywords":["ssh","stream","duplex","exec","connection"],"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","gitHead":"67cbcfb3202fb3c7713df2fe7476757b8288c808","_id":"ssh-exec@1.1.0","_shasum":"4034e11cbcee5e89fee17b5c7dfaaaf50465baf2","_from":".","_npmVersion":"2.7.5","_nodeVersion":"1.6.4","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"dist":{"shasum":"4034e11cbcee5e89fee17b5c7dfaaaf50465baf2","tarball":"http://registry-npm.ywwl.com/ssh-exec/download/ssh-exec-1.1.0.tgz","integrity":"sha512-3MzEvuPni8e0mTybXqQnjVSBnEST5ZV/e5sXpxBPhyxd7OEhlhwscbQyFIvXGr8TxpNf0kp+z/dMdZ4C8NjK9Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCobUA9AhSHywi9xj5EwJThItsiok3bi6T2mUfcgaJzsgIgL5nKVtTkGLttX2X+TDPhj5OsKw2vo2LIk0t1dzMOhIA="}],"size":2445,"noattachment":false,"key":"/ssh-exec/-/ssh-exec-1.1.0.tgz"},"directories":{},"readme":"# ssh-exec\n\nExecute a script over ssh using Node.JS and pipe to and from it\n\nIt is available through npm\n\n```\nnpm install ssh-exec\n```\n\nIt is written in plain Javascript and uses [ssh2](https://github.com/mscdex/ssh2) for all the heavy lifting.\n\n## Usage\n\n``` js\nvar exec = require('ssh-exec')\n\n// using ~/.ssh/id_rsa as the private key\n\nexec('ls -lh', 'ubuntu@my-remote.com').pipe(process.stdout)\n\n// or using the more settings\n\nexec('ls -lh', {\n  user: 'ubuntu',\n  host: 'my-remote.com',\n  key: myKeyFileOrBuffer,\n  password: 'my-user-password'\n}).pipe(process.stdout)\n\n// or if you want to pipe some data to the remote process\n\nprocess.stdin\n  .pipe(exec('echo try typing something; cat -', 'ubuntu@my-remote.com'))\n  .pipe(process.stdout)\n```\n\nOptionally there is a callback api as well\n\n``` js\nexec('ls -lh', 'ubuntu@my-remote.com', function (err, stdout, stderr) {\n  console.log(err, stdout, stderr)\n})\n```\n\n## License\n\nMIT\n","publish_time":1428961947387,"_cnpm_publish_time":1428961947387,"dist-tags":{"latest":"2.0.0"}}