Browse Source

Added support for FreeBSD

For root: Changed '/bin/login' to '/usr/bin/env login'
For non-root: Added keyboard-interactive authentication
pull/96/head
Farhan Khan 7 years ago
parent
commit
dc8c06e736
  1. 4
      app.js

4
app.js

@ -42,7 +42,7 @@ var opts = require('optimist')
var runhttps = false;
var sshport = 22;
var sshhost = 'localhost';
var sshauth = 'password';
var sshauth = 'password,keyboard-interactive';
var globalsshuser = '';
if (opts.sshport) {
@ -103,7 +103,7 @@ io.on('connection', function(socket){
var term;
if (process.getuid() == 0) {
term = pty.spawn('/bin/login', [], {
term = pty.spawn('/usr/bin/env', ['login'], {
name: 'xterm-256color',
cols: 80,
rows: 30

Loading…
Cancel
Save