Browse Source

修改ssh连接命令

pull/113/head
nradiowan 7 years ago
parent
commit
f8c0f473e5
  1. 2
      app.js

2
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) {

Loading…
Cancel
Save