22端口限制 git_GitLab(SSH)通过公共WIFI,端口22被阻止

自2016年2月起,您不再需要切换到https.

您可以在…端口443(通常为https事务保留的端口)上的ssh中推送到GitLab

GitLab.com运行第二个SSH服务器,该服务器侦听常用的端口443,该端口不太可能被防火墙.

All you have to do is edit your ~/.ssh/config and change the way you connect to GitLab.com.

The two notable changes are Hostname and Port:

Host gitlab.com

Hostname altssh.gitlab.com

User git

Port 443

PreferredAuthentications publickey

IdentityFile ~/.ssh/gitlab

[您可能需要更改远程原始URL:

git remote set-url origin altssh.gitlab.com:user/myrepo.git

]

The first time you push to altssh.gitlab.com you will be asked to verify the server’s key fingerprint:

The authenticity of host '[altssh.gitlab.com]:443 ([104.208.154.249]:443)' can't be established.

ECDSA key fingerprint is SHA256:HbW3g8zUjNSksFbqTiUWPWg2Bq1x8xdGUrliXFzSnUw.

Are you sure you want to continue connecting (yes/no)?

That’s only normal since you are connecting to the new loadbalancer. If you watch closely, the 07001.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值