Git克隆无法正常工作 - 错误443

gre*_*rth 8 git github

我在家工作,我正在尝试克隆来自Github的回购,并收到以下错误:

git clone https://github.com/account/repo.git
Run Code Online (Sandbox Code Playgroud)

也试过了

git clone git://github.com/account/repo.git

Error: Failed connect to github.com:443; No error while accessing https://github.com/account/repo/info/refs?service=git-upload-pac
fatal: HTTP request failed
Run Code Online (Sandbox Code Playgroud)

我甚至尝试使用SSH,这就是我得到的:

ssh:连接到主机github.com端口22:错误的文件号致命:无法从远程存储库读取.

我只能在我的笔记本电脑上克隆它,所以我知道我有正确的权限,我只是需要帮助试图弄清楚为什么在我的桌面上发生这种情况似乎所有其他建议似乎都没有工作.

  • 我没有使用代理.
  • 我也不能对已经存在的其他回购做些什么.

编辑 确定我运行了建议的命令,结果如下:

$ ssh -i ~/.ssh/id_rsa -vvv git@github.com
OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
debug2: ssh_connect: needpriv 0
debug1: Connecting to github.com [204.232.175.90] port 22.
debug1: connect to address 204.232.175.90 port 22: Not owner
ssh: connect to host github.com port 22: Bad file number
Run Code Online (Sandbox Code Playgroud)

有什么建议?

gre*_*rth 4

我知道这可能很普遍,但我决定想要得到这个答案,所以这就是我所做的,现在它可以正常工作:

  • 通过 Windows 卸载了所有 git 客户端(我最初有几个用于测试)
  • 从git安装了基本的 git bash
  • 关闭智能屏幕并确保防火墙和防御者已关闭(他们是)

再试一次,现在可以了。我最好的猜测是某处配置错误 - 可能是一个错误的密钥(不知道自从我更新它以来这是如何发生的)。无论如何,它正在发挥作用。这可能是核选项,但我希望这可以帮助其他遇到这种情况的人。