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

原文地址:https://www.cnblogs.com/jackbo/p/7298339.html