nodejs ssh2 工具封装
// "ssh2": "^0.8.9",var Client = require("ssh2").Client; /*** 描述:连接远程电脑* 参数:server 远程电脑凭证;then 回调函数* 回调:then(conn) 连接远程的client对象*/function Connect(server, then){ var conn = new Client(); conn.on("ready", function(){ console.log("connect
原创
2021-05-12 17:18:05 ·
1248 阅读 ·
0 评论