Have ideas to improve npm?Join in the discussion! »

    shh

    0.3.3 • Public • Published

    shh

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

    Keywords

    none

    Install

    npm i shh

    DownloadsWeekly Downloads

    22

    Version

    0.3.3

    License

    BSD

    Last publish

    Collaborators

    • avatar