为什么我的github连接停止工作而没有任何更改

问题描述 投票:1回答:1

我很长时间以来一直在个人Mac和IntelliJ上使用Github。实际上,我也在github上由Git repo支持的本地环境上运行spring-boot config服务器,直到今天一切都工作正常。今天突然,我的本地配置服务器停止工作。我尝试过并且无法使用IntelliJ将代码推送到Github

所以我尝试使用终端,但是今天出现了以下错误。

MacBook-Pro ~ %  ssh -T -p 443 [email protected]
The authenticity of host '[ssh.github.com]:443 ([192.30.253.123]:443)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)? 
Host key verification failed.

直到昨天所有人都运转良好。我什至没有使用终端,而是通过Intellij提交和推送代码。但是今天一切都在失败。

我在以上命令中按了yes。并得到以下消息

Warning: Permanently added '[ssh.github.com]:443,[192.30.253.123]:443' (RSA) to the list of known hosts.
Hi xxxxxx! You've successfully authenticated, but GitHub does not provide shell access.

但是我仍然无法推动或感染GitHub。我检查了~/.ssh文件夹中的文件。自12月以来,没有任何更改。我检查了我的Github配置文件设置ssh密钥,自12月以来没有任何更改。

但是今天突然一切都停止了。任何帮助表示赞赏。

git github ssh
1个回答
0
投票

唯一的区别是,我在咖啡店里使用公共wifi。

[再次检查它是否再次起作用(在咖啡店);至少从命令行:

git ls-remote [email protected]:me/myrepo
# or
export GIT_SSH_COMMAND='ssh -p 443'
git ls-remote [email protected]:me/myrepo
© www.soinside.com 2019 - 2024. All rights reserved.