git 更新推送代码22端口超时报错

  • 找到配置SSH时生成的 .ssh 文件夹,一般都会生成在(C盘 - 用户 - 用户名 - .ssh)
  • 新建 config 文件
    1
    2
    3
    4
    5
    6
    Host github.com
    User xxx@139.com
    Hostname ssh.github.com
    PreferredAuthentications publickey
    IdentityFile ~/.ssh/id_rsa
    Port 443
  • 再次测试ssh连接,出现以下提示,输入yes回车即可
    1
    ssh -T git@github.com