解決git Permission denied (publickey)問題

gitegitee.con: Permission denied (publickey).
Fatal: Could not read fron renote repository.Please make sure you have the correct access rishts
gitee版本管理出現這個錯誤的原因是:你在本地或者服務器上面沒有生成ssh key導致的。
在命令行輸入:ssh-keygen -t rsa -C "[email protected]"
[email protected]改成你自己的郵箱(git的郵箱)在這裏插入圖片描述
然後在紅框那個本地地址找到那個文件打開復制進
下圖那個公鑰大紅框裏點擊確定
在這裏插入圖片描述
最後一步,驗證Key在命令行下輸入命令:ssh -T [email protected]

提示:Hi xxx! You‘ve successfully authenticated, but GitHub does not provide shell access.