This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Connection = require('ssh2'), | |
net = require('net'); | |
var conn1 = new Connectiweon(), | |
conn2 = new Connection(); | |
conn1.on('ready', function() { | |
console.log('FIRST :: connection ready'); | |
conn1.exec('nc github.com 22', function(err, stream) { | |
if (err) return console.log('FIRST :: exec error: ' + err); |
NewerOlder