I am trying to access a git repository on a remote server that is on the other side of a private-2-private VPN connection using HTTPS protocol. We have no permission due to Firewall rules, therefore I want/need to use a SOCKS5 proxy.
The proxy is established like (names hidden for privacy):
ssh -N -D 8003 user@host1.remote.net
git configuration for proxy looks like:
http.proxy=socks5h://127.0.0.1:8003
https.proxy=socks5h://127.0.0.1:8003
My "git remote" configuration looks like
zzz https://atc.remote.net/bitbucket/scm/yyy/xxx.git (fetch)
zzz https://atc.remote.net/bitbucket/scm/yyy/xxx.git (push)
Now, the following works OK:
git fetch zzz
git push zzz
So, no problems with the proxy. But when I try
git clone https://atc.remote.net/bitbucket/scm/yyy/xxx.git
It either complains that it cannot resolve "atc.remote.net" or - after adding host and IP to /etc/hosts - it times out after a minute or so. This seems to suggest, that the clone command does not work with the proxy. Am I doing something stupid here ? Btw - the git client is version 2.31.1 on OpenSuse Tubmbleweed Linux.
Cheers
Martin