Browse Source

Removed Username on Non Root Account

pull/187/head
Koushik M L N 7 years ago
committed by Koushik M L N
parent
commit
94f86055cc
  1. 7
      app.js

7
app.js

@ -44,7 +44,6 @@ var runhttps = false;
var sshport = 22;
var sshhost = 'localhost';
var sshauth = 'password,keyboard-interactive';
var askusername = false;
var globalsshuser = '';
var globalsshpass = '';
var serveraliveinterval = 60;
@ -127,12 +126,6 @@ io.on('connection', function(socket){
cols: 80,
rows: 30
});
} else if(askusername){
term = pty.spawn('/usr/bin/env', ['login'], {
name: 'xterm-256color',
cols: 80,
rows: 30
});
} else {
term = pty.spawn('ssh', [sshuser + "@" + sshhost, '-p', sshport, '-o', 'PreferredAuthentications=' + sshauth], {
name: 'xterm-256color',

Loading…
Cancel
Save