Well, if you used this example:
net.createServer(function (socket) { repl.start("node via TCP socket> ", socket); }).listen(5001, "localhost");
And by connecting to this port 5001
, you should be able to safely connect to it using ssh:
ssh user@host nc localhost 5001
In this case, security depends on your firewall and ssh.
source share