git SSH key生成步驟

在命令行中輸入git

ssh-keygen -t rsa -C "git@git.com" 你的GIT郵箱帳戶

按3個回車,密碼爲空。shell


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:
………………ssh

 

最後獲得了兩個文件:id_rsa和id_rsa.pubide

 

打開id_rsa.pub ,複製裏面的信息,在git頁面add SSH KEY spa

複製裏面的信息,title 隨便取命令行

配置成功,就能夠CLONE啦code

相關文章
相關標籤/搜索