我正在使用星巴克的WiFi,当我尝试向gitlab.com仓库推送代码时,出现以下错误信息:
$ git push origin master
ssh: connect to host gitlab.com port 22: Connection refused
fatal: Could not read from remote repository.
我尝试适应GitHub的解决方法:Github (SSH) via public WIFI, port 22 blocked,通过添加以下内容到~/.ssh/config来解决问题。
Host gitlab.com
Hostname gitlab.com
Port 443
但是这并不起作用,因为我会收到以下错误信息:
$ git push origin master
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.
有没有一种方法可以绕过限制,使用443端口推送到GitLab.com?