我有一個公鑰文件與我的github帳戶相關聯。在我的電腦上,當我使用git push
時,所有git存儲庫都使用該文件。但是,一個存儲庫已損壞,我無法推送任何內容。我得到的錯誤:配置存儲庫使用我的RSA密鑰
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
由於其他存儲庫的工作原理,使用正確的RSA文件時一定會有一些問題。連接到GitHub時,如何將存儲庫設置爲正確使用.ssh/id_rsa.pub
?這是我的「遙控器」的名單:
github https://github.com/USERNAME/PROJECT-NAME.git (fetch)
github https://github.com/USERNAME/PROJECT-NAME.git (push)
origin [email protected]:USERNAME/PROJECT-NAME.git (fetch)
origin [email protected]:USERNAME/PROJECT-NAME.git (push)
當使用origin
推搡,我需要使用RSA文件。
遠程控制列表對於工作回購看起來如何?你對所有回購有相同的訪問權限嗎? –
@HaraldNordgren是的。唯一的區別是,這個特定的回購也是連接到我們的大學git服務器。但那些遙控器已被刪除。 –