Я установил Squid через Docker и протестирован с помощью curl и браузера, он работает нормально!
А затем я собираюсь установить прокси-сервер Http на git, моя команда ниже:
git config --global http.proxy http://myserverip:3128
А вот результат вышеуказанной команды в git config.
$ cat ~/.gitconfig
[http]
proxy = http://squid.veronalabs.com:3128
sslVerify = false
Но git clone не работает!
$ git clone git@gitlab.com:repo/project.git
Cloning into 'panel'...
ssh: connect to host gitlab.com port 22: Connection timed out
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
В любом случае, я добавил этот прокси для исходящих соединений:
$ export http_proxy=http://myserverip:3128
$ export https_proxy=http://myserverip:3128
Я очень ценю любую помощь!
Rydych chi'n defnyddio http.proxy ond yn ceisio clonio'r ystorfa gyda SSH. dylech ddefnyddio'r ddolen https GitLab.