FreeVM-Server-KVM/start-linux.js

7 lines
308 B
JavaScript
Raw Normal View History

2024-09-20 15:26:05 -04:00
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