【github】添加 ssh 秘钥

1 生成秘钥

  打开shell 

备注: [email protected] 为邮箱地址

ssh-keygen -t rsa -C "123@example.com"

此处选Y ,其他都是一路回车

 

2 查看

cat ~/.ssh/id_rsa.pub

把此处的秘钥复制。放到 github ssh秘钥里边即可

 

猜你喜欢

转载自www.cnblogs.com/richerdyoung/p/9208350.html