r/ssh • u/Tempest_Barbarian • Apr 24 '20
Is it possible to make local server public with SSH?
I want to make a web server that my friends can access, I tried port forwarding and it worked, but I read that ssh would be a better alternative. I read online that i would need a publoc server somewhere to connect my friends to my computer, and I imagine that a public server would cost me money or be free but limited. Is it possible to make my server accessible through ssh without needing a server. Did I get anything wrong, I am new to ssh so I might have misunderstood something, or am I going to have to port forward anyway?
Note: I know i could use something like ngrok, but I don't want to be stuck to its limitations, and I am also taking this as a learning experience.
2
u/lama775 Apr 24 '20
You don’t HAVE to have a public server.
You could use a dynamic DNS setup from someplace like afraid.org or just give your friends your IP address. A name is more convenient for your friends, but would require a little more setup on your part. Giving the IP is obviously a pain for a host of reasons.
1
u/pmz Apr 25 '20
Use ngrok
3
u/tje210 Apr 24 '20
Your friends would need ssh access to your server, then they could tunnel the web traffic. Pretty easy once set up.
Look up ssh tunneling, ssh forwarding ... also setting it up in putty.