Skip to content

gavinning/node-ssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published