【发布时间】:2022-01-15 18:59:02
【问题描述】:
我正在尝试使用此命令安装 Heroku CLI
brew tap heroku/brew && brew install heroku
但是我收到了这个错误
akshaybandivadekar@Akshays-MacBook-Pro ~ % brew tap heroku/brew && brew install heroku
==> Tapping heroku/brew
Cloning into '/usr/local/Homebrew/Library/Taps/heroku/homebrew-brew'...
akshaybandivadekar@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Error: Failure while executing; `git clone https://github.com/heroku/homebrew-brew /usr/local/Homebrew/Library/Taps/heroku/homebrew-brew --origin=origin --template=` exited with 128.
我检查了我的 GitHub 个人资料,我的 ssh 密钥设置在那里成功。 我可以使用 ssh 设置克隆任何公共仓库,例如
git clone git@github.com:lodash/lodash.git
但是这个命令不起作用
git clone https://github.com/lodash/lodash.git
我已经完成了本文中给出的所有命令 => https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
但仍然面临同样的问题。
【问题讨论】: