https://github.com/gavinning/node-ssh
node ssh shell
https://github.com/gavinning/node-ssh
node-shell node-ssh node-ssh-shell ssh ssh-shell
Last synced: 3 months ago
JSON representation
node ssh shell
- Host: GitHub
- URL: https://github.com/gavinning/node-ssh
- Owner: gavinning
- License: mit
- Created: 2018-11-27T05:52:36.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-16T12:16:14.000Z (about 6 years ago)
- Last Synced: 2025-03-27T07:48:55.256Z (9 months ago)
- Topics: node-shell, node-ssh, node-ssh-shell, ssh, ssh-shell
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
node-ssh-shell
---
基于[ssh2](https://www.npmjs.com/package/ssh2)实现,ssh登陆远程server,命令行shell模式
[jump-server](https://www.npmjs.com/package/@gavinning/jump-server) 基于node实现的跳板机
### Usage
更多参数请参考[ssh2](https://www.npmjs.com/package/ssh2).Client.connect: Options
```js
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
})
```