I have to set up an ssh/sftp connection which needs a certain configuration, and I've been looking around but didn't find an answer. I'm not sure it's even possible without some work around.
I have 4 IPs (like the below example):
192.168.0.10 - User PC
172.16.0.10 - SSH gateway
10.0.0.10 - Proxy server
184.108.40.206 - SSH server on the internet
What I need is to SSH from 1 to 4, using the ssh gateway, which requires the proxy (3) to access the internet. Currently i'm able to connect from 1 to 4 if i set up the proxy on 1 without passing by 2, but this is not acceptable. And I'm able to connect from 2 to 4 using the proxy. But if I try to connect from 1 to 4, using the gateway, I'm not sure how to tell the gateway to use the proxy. The tools I can use are netcat and connect-proxy on machine 1 and 2, but ProxyJump is not installed.