git生成ssh key

  1. 生成新的ssh key
    命令行输入
ssh-keygen -t rsa -C "your_email@example.com"

默认,一直回车
2. 获取生成的ssh key
命令行输入

cat ~/.ssh/id_rsa.pub
posted @ 2020-04-11 11:17  shellon  阅读(334)  评论(0编辑  收藏  举报