git无法打开连接

git无法打开连接,git,github,ssh,connection,Git,Github,Ssh,Connection,ssh无法连接到GitHub,但git克隆无法打开连接。我如何解决它? 当我使用puttygen生成PPK时,我可以通过tortoisegit克隆代码 git版本2.24.1.windows.2 Ortoisegit 2.9.0.0(C:\Program Files\Ortoisegit\bin) 下面是.ssh/config # github Host github HostName github.com PreferredAuthentications publickey

ssh无法连接到GitHub,但git克隆无法打开连接。我如何解决它? 当我使用puttygen生成PPK时,我可以通过tortoisegit克隆代码

git版本2.24.1.windows.2 Ortoisegit 2.9.0.0(C:\Program Files\Ortoisegit\bin)

下面是.ssh/config

# github
Host github
    HostName github.com
    PreferredAuthentications publickey
    IdentityFile ~/.ssh/github

URL中的冒号太多,它必须是git clonegit@github:zhangvv/shadowsocksr csharp.git对不起,我拼错了,修改了question.git克隆git@github:zhangvv/shadowsocksr-csharp.git也会犯同样的错误。让我们调试一下:try
git clonegit@github.com:zhangvv/shadowsocksr csharp.git
,然后
GIT\u SSH\u命令='SSH-vvv'GIT克隆git@github:zhangvv/shadowsocksr csharp.git
“主机不存在致命:无法从远程存储库读取。”查看.ssh/config文件中是否有CTRL-M字符,特别是在主机名行的末尾。我解决了问题,修改了windows系统环境变量,
GIT\u SSH=C:\Program Files\GIT\usr\bin\SSH.exe
URL中的冒号太多,必须是
GIT clonegit@github:zhangvv/shadowsocksr csharp.git
对不起,我拼错了,修改了问题。git clonegit@github:zhangvv/shadowsocksr-csharp.git也会犯同样的错误。让我们调试一下:try
git clonegit@github.com:zhangvv/shadowsocksr csharp.git
,然后
git\u SSH\u COMMAND='SSH-vvv'git clonegit@github:zhangvv/shadowsocksr csharp.git
“主机不存在致命:无法从远程存储库读取。”查看.ssh/config文件中是否有CTRL-M字符,特别是在主机名行的末尾。我解决了问题,修改了windows系统环境变量,
GIT\u ssh=C:\Program Files\GIT\usr\bin\ssh.exe
$ git clone git@github:zhangvv/shadowsocksr-csharp.git
Cloning into 'shadowsocksr-csharp'...
Unable to open connection:
Host does not existfatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
# github
Host github
    HostName github.com
    PreferredAuthentications publickey
    IdentityFile ~/.ssh/github