git 的 22 端口 ssh 被墙
-
测试原方法可用性
ssh -vT git@github.com- 一直卡在连接 22 端口,不可用
-
测试新方法可用性
ssh -T -p 443 git@ssh.github.com- 可以正常响应
- 原理
- 利用 https 的 443 接口去实现 ssh 登录
-
添加新方法
vim ~/.ssh/configHost github.com Hostname ssh.github.com Port 443
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
测试原方法可用性
ssh -vT git@github.com
测试新方法可用性
ssh -T -p 443 git@ssh.github.com
添加新方法
vim ~/.ssh/config
Host github.com
Hostname ssh.github.com
Port 443