I would like to have a port on my computer that forwards to a port on another computer. But I can't connect directly to the other computer. Instead, I have to go via a jump host.
my computer jump another computer @@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@ @ @ @ (D) @ @ (C) @ @ @ ssh @ @ @ @ @ my app -----> 1234 <==============> @ auth @ -----> 8080 ---> database @ @ @ (A) username @ @ (B) @ @ @ ssh client @ (E) @ ssh server @ @ @ @@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@
Example
My application on my computer is configured to connect to a database on
localhost:1234.
This should connect it to the database on another-computer:8080.