我在家工作,我正在尝试克隆来自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)
有什么建议?