lhssh

1.2.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i lhssh

Weekly Downloads

0

Version

1.2.3

License

ISC

Unpacked Size

6.44 kB

Total Files

5

Last publish

Collaborators

  • lokidarkeden