【发布时间】:2021-06-09 01:18:24
【问题描述】:
由于之前克隆的私有 GitHub 存储库,我在将私有存储库克隆到我的 CPanel 服务器时遇到了一些问题。我在使用 ssh 访问之前已经克隆了它,一切正常。但是,我需要克隆另一个也是私有的并且也使用 ssh 访问的 repo。
我按照之前的步骤将私有仓库复制到 CPanel 中。但是,我在访问权限方面遇到问题,收到与以下相同的消息:
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
有没有办法克隆两个具有不同 ssh 密钥的私有存储库?如何克隆这些存储库而不会收到上述相同的消息?
提前致谢。
------------------------------------------ - - - 编辑 - - - - - - - - - - - - - - - - - - - - - - ---------
我在 .ssh 文件夹中的配置文件如下
Host region_admin
HostName <git@github.com:SthefanyRangel/regionadmin.git>
User regioye5@cs2006.webhostbox.net:2083
IdentityFile ~/.ssh/id_rsa
Host renovafacil
HostName <git@github.com>
User regioye5@cs2006.webhostbox.net:2083
IdentityFile ~/.ssh/id_rsa.rf
Host regionadmin-ra2
HostName <git@github.com>
User git
IdentityFile ~/.ssh/region_admin
我连接到第二个帐户的尝试是最后一条记录。
【问题讨论】:
标签: laravel git github ssh cpanel