參考頁面 :https://blog.csdn.net/u011138533/article/details/51879439
SSH配置如下:
一 、
設置Git的user name和email:
$ git config --global user.name "YongHuMing" $ git config --global user.email "個人郵箱xxxx@qq.com"

二、生成SSH密鑰過程:
1.查看是否已經有了ssh密鑰:cd ~/.ssh

如果沒有密鑰則不會有此文件夾,有則備份刪除
2.生成密鑰:
$ ssh-keygen -t rsa -C “email@email.com”
按3個回車,密碼為空。
(email@email.com是github的賬號,即上面的email)
Your identification has been saved in /home/tekkub/.ssh/id_rsa.
Your public key has been saved in /home/tekkub/.ssh/id_rsa.pub.
The key fingerprint is:
………………
最后得到了兩個文件:id_rsa(密鑰)和id_rsa.pub(公鑰)
