My situation is, I can ssh to ComputerB (Code repos) where git repos is put. But my local connection is too slow to clone the code. And I can ssh to another machine (ComputerA) which is faster, so I want to clone the code through ComputerA.
This is what I did:
ssh tunnel ssh tunnel
MyComputer ----------> ComputerA (I can ssh to) ----------> ComputerB (where the Code repos is and I can ssh to but too slow)
Using a command like this:
ssh -L1234:ComputerA_ip:22 Code_repos_ip
Then:
git clone git+ssh//localhost/repos local_repos (how can I assign the port 1234?)
If this doesn't work, what else can I do?