DEV Community

Discussion on: How to run VS Code on the server!

Collapse
 
ronjonarod profile image
Alex Rodriguez

So for the SSH Tunneling/ Port Forwarding section is there a reason why you did the 0.0.0.0? Because if you use that instead of just leaving that off (i.e.

ssh -N -L 3000:localhost:3000 login@your-server \
  2> /dev/null

(or doing localhost) then that means, if you don't have a firewall on your machine that is actively blocking port 3000, anyone will be access that port that is one the same network as you. Since you are just referencing accessing localhost in the article I think it would make more since to just drop the 0.0.0.0 so you don't expose unnecessary ports from your machine (or in this case from the remote machine).

really cool post though, thank you 😁