http-ssh-agent:通过 ssh 向 http 服务器发送请求

时间:2021-06-24 01:17:44
【文件属性】:
文件名称:http-ssh-agent:通过 ssh 向 http 服务器发送请求
文件大小:6KB
文件格式:ZIP
更新时间:2021-06-24 01:17:44
JavaScript http-ssh-agent Node.js ,允许您通过 ssh 发送 http 请求。 npm install http-ssh-agent 用法 在您具有 ssh 访问权限的服务器上启动 http 服务器。 由于我们将使用 ssh 访问服务器,因此服务器可以绑定到未在外部打开的端口。 在您的本地机器上,您只需使用一些 ssh 选项创建代理并将其传递给 http 模块。 使用节点核心 var http = require ( 'http' ) var agent = require ( 'http-ssh-agent' ) // per default the agent will authenticate using ~/.ssh/id_rsa as your private key var ssh = agent ( 'username@example.com' ) htt
【文件预览】:
http-ssh-agent-master
----.gitignore(24B)
----README.md(2KB)
----tcpish.js(3KB)
----LICENSE(1KB)
----package.json(660B)
----index.js(4KB)
----test.js(3KB)
----.travis.yml(226B)

网友评论