在部署时遇到此错误,但能够提交和推送代码。发生此问题后,我已经删除了以前的开发人员存储库。我试图在服务器上生成新的ssh密钥,然后将其添加到新的存储库中,但是github显示密钥已在使用中消息。
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我该如何解决此问题?我只想使用新的存储库进行部署。
您可以浏览Nash的“ Solving common public key problems in Laravel Forge”中列出的常见原因列表:
Servers -> YOUR SERVER -> Server Details -> Meta -> Forge's Public Key
中注册/home/forge/.ssh/authorized_keys
文件和/root/.ssh/authorized_keys
文件中。~/.ssh/id_rsa.pub
另请参见“ forge-docs / SSH Keys”。