autossh:永久SSH隧道

时间:2021-05-08 17:46:59
【文件属性】:
文件名称:autossh:永久SSH隧道
文件大小:13KB
文件格式:ZIP
更新时间:2021-05-08 17:46:59
JavaScript Autossh Node.js的持久SSH隧道 安装 使用npm npm i -S autossh 用法 开始 const autossh = require ( 'autossh' ) ; autossh ( { host : '111.22.333.444' , username : 'root' , localPort : 64444 , remotePort : 5432 } ) ; ...相当于... ssh -NL 64444:localhost:5432 -o " ExitOnForwardFailure yes " -o ServerAliveInterval=120 -o ServerAliveCountMax=1 root@111.22.333.444 事件监听器 Autossh继承自node.js的EventEmitter,并实现了三个事件:
【文件预览】:
autossh-master
----.eslintrc.json(10KB)
----src()
--------index.js(9KB)
----.babelrc(28B)
----examples()
--------postgres.js(921B)
----README.md(9KB)
----.eslint.log(1B)
----demo.js(1KB)
----.gitignore(34B)
----index.js(12KB)
----package.json(842B)

网友评论