github / gitlab s申城 配置密钥 ssh key
1、生成密钥
ssh-keygen -t rsa -C "你的邮箱@qq.com"
2、查看生成的密钥
cat ~/.ssh/id_ras.pub
复制生成的密钥 在 设置 ssh密钥模块添加
生成多个密钥 - 通过配置不同的邮箱及名称区分
生成步骤
ssh-keygen -t rsa -C "你的邮箱@qq.com" -f ~/.ssh/id_rsa_github
ssh-keygen -t rsa -C "第二个邮箱@qq.com" -f ~/.ssh/id_rsa_gitlab
查看步骤
ssh-add ~/.ssh/id_rsa_github
ssh-add ~/.ssh/id_rsa_gitlab