node-ssh-shell

node ssh shell

Usage no npm install needed!

<script type="module">
  import nodeSshShell from 'https://cdn.skypack.dev/node-ssh-shell';
</script>

README

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