Environment: My localhost has access to my VPN. My remotehost needs to access the VPN via my localhost. I can only ssh from localhost to remotehost. I have setup a tunnel to access the shell on my remotehost.
I have ssh setup from localhost to remotehost using keys and without password prompt.
This allows me to run VNC from localhost to access my remotehost.
Problem:
My remotehost has git repos which need to be updated, but via the localhost's VPN. i.e. when I perform on the remotehost a git pull command, it will access the VPN git repository via the tunnel created from localhost.
I have read about ssh -R and ssh .config having a ProxyCommand, but putting it altogether is a mess.