gitlab add sshkey(包括第二個key)


一 gitlab 添加sshkey

終端生成key

1 ssh-keygen -t rsa -C "yourmail@xx.com"//github郵箱地址

密碼驗證

成功標志 

2  ssh-add id_rsa.pub //添加到known_hosts

3  cat id_rsa.puh  //獲得key 復制key

4 把key 黏貼到gitlab.com  sshkey

二   添加第二個key

 

1 ssh-keygen -t rsa -C "yourmail@xx.com" -f id_rsa_github

2 一的步驟在做一次

 


免責聲明!

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



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