node-ssh-shell

0.1.4 • Public • Published

node-ssh-shell

基于ssh2实现,ssh登陆远程server,命令行shell模式

jump-server 基于node实现的跳板机

Usage

更多参数请参考ssh2.Client.connect: Options

const ssh = require('node-ssh-shell')
 
ssh({
    host: '192.168.100.1',
    port: 22,
    username: 'nodejs',
    password: 'rules',
    privateKey: require('fs').readFileSync('/here/is/my/key'),
    passphrase: 123,
    readyTimeout: 5000
})

Package Sidebar

Install

npm i node-ssh-shell

Weekly Downloads

2

Version

0.1.4

License

MIT

Unpacked Size

4.12 kB

Total Files

6

Last publish

Collaborators

  • gavinning