Назад | Перейти на главную страницу

ssh ProxyCommand не работает в centos, но работает для Ubuntu

Это мой файл конфигурации ssh в ubuntu, расположенный ~/.ssh/config

Host gitlab.com
    User                    git
    ProxyCommand            nc -x 127.0.0.1:1080 %h %p

и он работает, но та же конфигурация в centos не работает. и вот результат:

 git pull
Ncat: Connection timed out.
ssh_exchange_identification: Connection closed by remote host
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

В любом случае, когда я бегу curl --socks5-hostname 127.0.0.1:1080 icanhazip.com результат - IPv6.