I wonder if there is a way for me to SCP the file from remote2 host directly from my local machine by going through a remote1 host.
The networks only allow connectio
This configuration works nice for me:
Host jump User username Hostname jumphost.yourorg.intranet Host production User username Hostname production.yourorg.intranet ProxyCommand ssh -q -W %h:%p jump
Then the command
scp myfile production:~
Copies myfile to production machine.