Although I use some aliases to do ssh tunnel or reverse tunnel, I never understand how it works. Does somebody know how to explain it in a very simple way?
I think the 3 primary uses are:
First of all, I can use my home computer to ssh to foo.mycompany.com, without using any password
(foo is a server at work)
How to make
foo.mycompany.com:8080go to my home computer'slocalhost:3000?If at home, I cannot access
http://bar.mycompany.com, butfoocan accessbar, how to make the home computer able to accesshttp://bar.mycompany.com?If at home, I cannot access MySQL db at
db.mycompany.com, butfoocan, how to make it possible to accessdb.mycompany.comalso usingsshtunnel?
Can it be explained in very simple terms? Are there actually some other popular use cases besides these 3? Thanks.