Let's say I have a node server running at mysite.com. Is there a way to set up that server so that I can use node's repl api to securely connect to it from my local machine?
Asked
Active
Viewed 2,090 times
1 Answers
13
Well, if you used this example:
net.createServer(function (socket) {
repl.start("node via TCP socket> ", socket);
}).listen(5001, "localhost");
And firewalled that port 5001
, you should be able to securely connect to it using ssh:
ssh user@host nc localhost 5001
In this case, the security relies on your firewall, and ssh.

Linus Thiel
- 38,647
- 9
- 109
- 104
-
2Maybe even better to bind with `127.0.0.1` too. – loganfsmyth Feb 15 '12 at 23:26