分類
git 錯誤紀錄

Git error: Permission denied (publickey) fatal: Could not read from remote repository

Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

 
Root Caused:
通常是 SSH Key 沒有加入的問題
Solution:
1.重新產生 SSH Key
終端機輸入

ssh-keygen –t rsa –b 2048


2.顯示 SSH Key
終端機輸入

cat ~/.ssh/id_rsa.pub


3.貼到 Gerrit 中
Settings -> SSH Public Keys -> add key 
貼上第2步中所有的內容

在〈Git error: Permission denied (publickey) fatal: Could not read from remote repository〉中有 1 則留言

Hello there! I just wish to give you a big thumbs up for your great info you have right here on this post. I will be coming back to your site for more soon.
By the Way – If you are looking to remodel your web site with more useful, interesting, search engine friendly content To Generate Unlimited Visitors, & Much More Cash, than I request you to visit this site to Download FREE PLR Articles along with the most vauable Article Marketing Software. Cheers

留言功能已關閉。