+ Initial source checkin

This commit is contained in:
NuSkooler 2014-10-16 20:21:06 -06:00
parent 9804c93f2e
commit 9a7e90b9b2
31 changed files with 4361 additions and 0 deletions

30
core/servers/ssh.js Normal file
View file

@ -0,0 +1,30 @@
"use strict";
var libssh = require('ssh');
var conf = require('../config.js');
/*
Notes on getting libssh to work. This will ultimately require some contribs back
* Can't install without --nodedir= as had to upgrade node on the box for other reasons
* From ssh dir, node-gyp --nodedir=... configure build
* nan is out of date and doesn't work with existing node. Had to update. ( was "~0.6.0") (npm update after this)
*
*/
exports.moduleInfo = {
name : 'SSH',
desc : 'SSH Server',
author : 'NuSkooler'
};
function createServer() {
var server = libssh.createServer(
conf.config.servers.ssh.rsaPrivateKey,
conf.config.servers.ssh.dsaPrivateKey);
server.on('connection', function onConnection(session) {
console.log('ermergerd')
});
return server;
}