This might be a convoluted way to go about it so please tell me if there's a simpler way.
I have a linux "boxA" in a DMZ and a linux "boxB" in my LAN (as well as "boxC" which is my central git server inside the LAN).
There's only one rule allowing communication through the DMZ/LAN :
BoxB can SSH into boxA but not the other way around.
Since etckeeper is installed on boxA I want to push its commits to boxC but it has to go through boxB (which also has to be the initiator of the operation).
So I'm trying to do the following :
- From boxB ssh into boxA.
- Still from boxB use the current ssh channel to push boxA's commits into boxC
How can I do this ?
Additional difficulty : Since etckeeper is a VCS for /etc I need to use sudo on boxA since I don't ssh directly into root.