【问题标题】:Lost access to github after upgrading to Catalina (MAC OS)升级到 Catalina (MAC OS) 后无法访问 github
【发布时间】:2021-09-17 13:53:13
【问题描述】:

我升级了 Catalina,然后我无法访问我的 github 存储库:

$ ssh -T git@github.com
kex_exchange_identification: Connection closed by remote host
$ ssh -vvv git@github.com
OpenSSH_8.1p1, LibreSSL 2.7.3
debug1: Reading configuration data /Users/XXX/.ssh/config
debug1: /Users/XXX/.ssh/config line 1: Applying options for *
debug1: /Users/XXX/.ssh/config line 6: Applying options for github.com
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 47: Applying options for *
debug1: Connecting to ssh.github.com port 443.
debug1: Connection established.
debug1: identity file /Users/XXX/.ssh/id_rsa type 0
debug1: identity file /Users/XXX/.ssh/id_rsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.1
kex_exchange_identification: Connection closed by remote host

这曾经工作得很好。知道如何调试吗?

【问题讨论】:

  • 你的公钥还在你的 GitHub 账户里吗?
  • @BenjaminW。是的!

标签: bash git macos ssh


【解决方案1】:
Connecting to ssh.github.com port 443

这意味着你是Using SSH over the HTTPS port

试试测试:

ssh -Tv -p 443 git@ssh.github.com

但仔细检查端口 22 是否被阻止:

ssh -T -p 22 git@github.com

如果仍然失败,请查看“The hard way to debug the mysterious git+ssh+proxy failure “bash: No such file or directory”

解决方案:手动将 SHELL 设置为 shell 的完整路径名,例如/bin/bash.

【讨论】:

  • 不确定是否和我的问题相同。错误是不同的。
  • @pynexj 仍然值得一试。
猜你喜欢
  • 2020-04-25
  • 1970-01-01
  • 2020-02-05
  • 2014-12-24
  • 2020-02-05
  • 2022-11-23
  • 1970-01-01
  • 1970-01-01
  • 2019-02-04
相关资源
最近更新 更多