Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adriano-di-giovanni/node-ssh-exec
A simple ssh2 wrapper to exec shell commands on remotes via ssh using Node.js.
https://github.com/adriano-di-giovanni/node-ssh-exec
Last synced: 1 day ago
JSON representation
A simple ssh2 wrapper to exec shell commands on remotes via ssh using Node.js.
- Host: GitHub
- URL: https://github.com/adriano-di-giovanni/node-ssh-exec
- Owner: adriano-di-giovanni
- Created: 2014-06-30T11:26:47.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-06T09:51:50.000Z (almost 10 years ago)
- Last Synced: 2024-10-12T22:40:14.734Z (about 1 month ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-ssh-exec
A simple ssh2 wrapper to exec shell commands on remotes via ssh using Node.js.
## Installation
```
npm install node-ssh-exec
```## Usage
```javascript
var
exec = require('node-ssh-exec');var
// see https://github.com/mscdex/ssh2
config = {
host: 'localhost',
username: 'root',
password: 'root'
},
command = 'ls -alh';exec(config, command, function (error, response) {
if (error) {
throw error;
}console.log(response);
});
```