ssh-wrapper

1.0.3 • Public • Published

SSH Wrapper

Executes a shell command over an SSH connection.

Greenkeeper badge

Methods

.exec(obj config, string command)

Executes a command over SSH. Expects a config object:

{
    user: 'user',
    host: 'host',
    [key: 'private/key/file/path']
}

Returns a Promise containing the stdout output, or stderr in case of an error.

Readme

Keywords

Package Sidebar

Install

npm i ssh-wrapper

Weekly Downloads

7

Version

1.0.3

License

MIT

Last publish

Collaborators

  • aapit