生成ssh key
2021-03-07 本文已影响0人
_咻咻咻咻咻
- 确认是否拥有密钥
cd ~/.ssh
image.png
- 生成key
ssh-keygen -t rsa -C 'your_email@example.com'
,一路回车
image.png
- 查看公钥内容
cat ~/.ssh/id_rsa.pub
image.png
-
复制公钥,进入github,打开setting
image.png
cd ~/.ssh
ssh-keygen -t rsa -C 'your_email@example.com'
,一路回车cat ~/.ssh/id_rsa.pub
复制公钥,进入github,打开setting