Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added support for FreeBSD
For root: Changed '/bin/login' to '/usr/bin/env login'
For non-root: Added keyboard-interactive authentication
  • Loading branch information
khanzf committed Sep 5, 2017
1 parent 3d2adad commit dc8c06e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.js
Expand Up @@ -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) {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit dc8c06e

Please sign in to comment.