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.

問題原因:

通常是 SSH Key 沒有加入的問題

解決方式:
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步中所有的內容

0 意見:

張貼留言

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Affiliate Network Reviews