7 lines
308 B
JavaScript
7 lines
308 B
JavaScript
const http = require('http');
|
|
const child = require("child_process");
|
|
//create a server object:
|
|
http.createServer(function (req, res) {
|
|
res.write('SSH working at IP: this.is.a.test'); //write a response to the client
|
|
res.end(); //end the response
|
|
}).listen(8080); //the server object listens on port 8080
|