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

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注