Skip to content

github

ssh项目拉取配置443端口

22端口有时会出现超时问题, 可能是防火墙或代理引起,配置443端口来避免

  • 测试
ssh -T -p 443 git@github.com
Hi gofulljs! You've successfully authenticated, but GitHub does not provide shell access.
  • vim ~/.ssh/config
Host github.com
    HostName ssh.github.com
    Port 443
    User git
    IdentityFile ~/.ssh/id_rsa
    IdentitiesOnly yes

Comments