0
如何設置連接到ssh服務器的超時時間?節點js在ssh2中設置ssh的超時時間
目前,我連接到服務器用下面的代碼:
var Client = require('ssh2');
var conn = new Client();
conn.on('ready', function(){
console.log("connected");
});
conn.on('error', function(){
console.log("fails");
});
conn.connect({
host: ip,
port: 22,
username: user,
password: password
});
非常感謝你,我沒有看到readytimeout config – beginerdeveloper