【发布时间】:2020-12-13 18:02:47
【问题描述】:
我为我的帐户设置了 SSH 密钥。
当我在终端运行 git clone 时,我通常会收到 Forbidden fatal: could not read from remote repository。
运行 ssh-add -l 显示正确的经过身份验证的代理。
运行 git clone 现在要求输入我的密码并显示上述错误消息。
说“请确保您拥有正确的访问权限并且存储库存在。”
我运行ps 以确保只有一个经过身份验证的代理
clone 命令是git clone git@bitbucket.org:<filepath>.git
【问题讨论】:
-
请发送克隆命令。您可能使用了 http 而不是 ssh
-
我添加了 git clone 命令。虽然不是 https
标签: bash github bitbucket git-clone