https://blog.csdn.net/awp0011/article/details/73368481
第一次使用github.com
在本地 執行 git clone git@github.com:xxxxx/xxxxx.git
異常信息:
Permission denied (publickey).
fatal: Could not read from remote repository.
原因是SSH 登錄時沒有加密所需的秘鑰
所以 我們 需要生成密碼
ssh-keygen -t rsa
1
在~/.ssh/ 有三個文件
id_rsa
id_rsa.pub
known_hosts
將 id_rsa.pub 內容復制到 github的 https://github.com/settings/keys
add SSH key
然后你再 git clone
————————————————