Git 生成SSH秘鑰


參考頁面 :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(公鑰)

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM