I am on an AWS box and want to connect to a production machine through my local computer. If I just wanted to connect from my local computer, I could connect as follows:
ssh -ND <port> prod-machine
How can I add an extra connection, mimicking the above, from AWS --> Local --> Production. Importantly, I can't connect direction from AWS --> Production. So should be some sort of two tunnel set up through my local machine, but not sure exactly how to do it... can you guys help out?
Thank you!