lhssh
v1.2.3
Published
A Simple SSH Promise Wrapper for ssh2
Downloads
6
Readme
lhssh
A Simple Promise Wrapper for [SSH2].
Requirements
Installation
npm i lhssh
Usage Examples
Execute uptime
on a server
const LHSSH = require("lhssh");
const ssh = new LHSSH({
host: '192.168.100.100',
port: 22,
username: 'teste',
password: 'teste'
});
ssh.exec("uptime").then( ({ stdout, stderr, code, signal }) => {
console.log("Uptime:", stdout);
}).catch( error => {
console.log("Erro on Executing Uptime:", error);
});