Tag - GitHub

My digital garden, where I share my thoughts and ideas.

  • Cover image of post: SSH 通过 443 端口连接 GitHub
    Category
    ⚙️ Engineering
    Published on
    Estimated reading time
    GitHub 提供了两种协议供用户使用 Git 连接—— SSH 和 HTTPS。理论上我可以随意选择两者之一连接到我在 GitHub 上的代码仓库,无论是将云端的仓库 clone 到本地,还是将本地的修改 push 到云端。然而,出于一些奇奇怪怪的原因,我所在的办公网络环境禁止了 22 端口。为了一劳永逸地解决这个问题,最理想的解决方式是让 Git 的 SSH 协议改用 22 以外的其他端口连接 GitHub。