解決git@gitee.com: Permission denied (publickey).

轉自: http://www.noobyard.com/article/p-fwrbekcu-gr.htmlgit

1)、從新生成ssh
ssh-keygen -t rsa -C 「xxxxx@xxxxx.com」
2)、查看你的 public key
cat ~/.ssh/id_rsa.pub
(以ssh-rsa 開頭,以帳號的註冊郵箱結尾的)
3)、將它添加到碼雲
4)、終端輸入
ssh -T git@gitee.com
5)、完成啦~web