I'm trying to execute a command from Server 1 through server 2 on a machine that's on the outside world is this possible via ssh tunnel forwarding? I made a little drawing as an example.
I've tried it with
ssh -L PORT:IP:PORT user@remotemachine "hostname"
When i try this i get the wrong hostname back