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 一的步骤在做一次

 

posted @ 2017-08-07 11:37  开不开门  阅读(1964)  评论(0编辑  收藏  举报