【发布时间】:2017-05-17 20:43:03
【问题描述】:
我在使用 ssh 克隆 git 存储库时遇到了一个奇怪的问题。我有 ssh 设置:
ssh -T git@github.com
Hi yusufali2205! You've successfully authenticated, but GitHub does not provide shell access.
我正在使用正确的克隆 URL,并且可以访问我想要克隆的存储库。但出现错误:
➤ git clone git@github.com:<some-org>/<repo>.git
Cloning into 'project'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
没有其他消息可以调试我的 ssh 设置或 git 配置有什么问题。
【问题讨论】:
标签: git github ssh git-config