小编Yus*_*205的帖子

Github SSH 可以工作,但使用 ssh 克隆失败

我在使用 ssh 克隆 git 存储库时遇到了一个奇怪的问题。我有 ssh 设置:

\n\n
ssh -T git@github.com\nHi yusufali2205! You've successfully authenticated, but GitHub does not provide shell access.\n
Run Code Online (Sandbox Code Playgroud)\n\n

我正在使用正确的克隆 URL,并且可以访问我想要克隆的存储库。但出现错误:

\n\n
\xe2\x9e\xa4 git clone git@github.com:<some-org>/<repo>.git\nCloning into 'project'...\nPermission denied (publickey).\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n
Run Code Online (Sandbox Code Playgroud)\n\n

没有其他消息可以调试我的 ssh 设置或 git 配置有什么问题。

\n

git ssh github git-config

8
推荐指数
2
解决办法
6345
查看次数

标签 统计

git ×1

git-config ×1

github ×1

ssh ×1