I'd like to reach my local webserver http://192.168.0.186:3000 when I am not at home. I don't want to publish it on the internet, because I don't think it is safe when you are not an expert in maintenance and security. I once did it with an Apache server using dyndns, and on the same day the logs were full of hacker attempts. I realized that something is wrong, when I got a message from the operating system that C:/ is full.
What I thought of is using an SSH tunnel. So I assume I need an SSH server running on a local machine. I already have one: 192.168.0.186:22. I use to connect with ssh [email protected] from git bash. I guess I have to open port 22 on the router firewall too, so I will be able to reach the SSH server through the internet.
On the client machines I have Windows 7, Windows 8.1 and Fedora 23 currently. On Windows I'd like to use git bash or something like that instead of putty, if that is possible. I'd like to run everything related to this in background automatically, so starting putty every time I want to connect to the home server is not an option. I can write a simple background service for the clients if needed.
My questions:
- How can I setup the SSH server to forward the HTTP requests to the local webserver?
- How can I setup the browser to use the SSH server to connect to the local webserver?
- In order to make this more secure should I create a new Linux user on
192.168.0.186with limited permissions dedicated to this responsibility?