- 查看本地是否存在SSH Key
ls -al ~/.ssh
- 生成新的SSH Key
ssh-keygen -t rsa -C"you_email"
- 生成并添加SSH Key
ssh-add ~/.ssh/id_rsa
- 查看SSH Ket
cat ~/.ssh/id_rsa.pub
ls -al ~/.ssh
ssh-keygen -t rsa -C"you_email"
ssh-add ~/.ssh/id_rsa
cat ~/.ssh/id_rsa.pub