Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Quiet the ssh client.
CoffeeScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
test
.gitignore
.npmignore
.travis.yml
Cakefile
README.md
package.json

README.md

shh Build Status

A simple ssh client library for node.js. Password authentication is not allowed, so make sure you setup an identity file first.

Usage

var shh = require('shh');

client = new shh.Client({
    host: 'example.com',
    username: 'zeekay'
});

client.connect(function() {
    client.exec('ls', function (err, out) {
        console.log(out);
        client.close();
    });
});

You can also stream stdout and stderr line by line:

client.on('stdout', function (line) {
    console.log(line);
});
Something went wrong with that request. Please try again.