Squid Http-прокси не работает в git clone

Я установил 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

Я очень ценю любую помощь!

0
задан 7 March 2020 в 12:08
1 ответ

Rydych chi'n defnyddio http.proxy ond yn ceisio clonio'r ystorfa gyda SSH. dylech ddefnyddio'r ddolen https GitLab.

3
ответ дан 30 March 2020 в 01:18

Теги

Похожие вопросы