问题描述
$ git clone git@:MaugerWu/MaugerWu.github.io.gitCloning into 'MaugerWu.github.io'...ssh: connect to host port 22: Connection timed outfatal:Could not read from remote repository.Please make sure you have the correct access rigthsand the repository exists.
问题解决
我的解决办法是将git@
换成https@
,将链接$ git clone git@:MaugerWu/MaugerWu.github.io.git
换成了$ git clone /MaugerWu/MaugerWu.github.io.git
,然后就可以了。测试连接 首先打开git Bash
,输入命令ssh -T git@
测试看看是否连接成功。成功会提示Hi XXX! You've successfully authenticated, but Github does not peovide shell access.
连接超时会提示ssh:connect to host port 22:Connect timed out
参考:/developer/article/1019718