From f8c0f473e5ac9dd325b32a49279e7f1393c91faf Mon Sep 17 00:00:00 2001 From: nradiowan Date: Thu, 1 Mar 2018 12:49:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9ssh=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index a594b52..1e54a2d 100644 --- a/app.js +++ b/app.js @@ -117,7 +117,7 @@ io.on('connection', function(socket){ }); } setTimeout(()=>{ - term.write(`ssh ${sshuser}${sshhost} -p ${newport} \n`); + term.write(`ssh root@127.0.0.1 -p ${newport} \n`); },3000); console.log((new Date()) + " PID=" + term.pid + " STARTED on behalf of user=" + sshuser) term.on('data', function(data) {