I have to VMs.
ServerB – client server which I don’t have any access, that server is exposing port 8999 to my ServerA.
ServerA – I have access to that server, and I can request the serverB on port 8999.
Is there any way to create port forwarding on serverA? I want to request from my local machine http://serverA:8999 and that request should go to http://serverB:8999. Is that possible and how to manage that?
I was trying to create ssh tunnel on local workstation
ssh -f -N -L 8999:serverB:8999 user@serverA
And it’s working, but I want to create more stable solution.