1、通过命令 ssh-keygen
生成 SSH Key:
ssh-keygen -t ed25519 -C "Gitee SSH Key"
三次回车

2、查看生成的 SSH 公钥和私钥:
ls ~/.ssh/

3、把公钥设置到git
id_ed25519.pub

4、测试
ssh -T git@gitee.com

成功!!!!!
开始你的:git clone XXXXX
ssh-keygen
生成 SSH Key:ssh-keygen -t ed25519 -C "Gitee SSH Key"
三次回车
ls ~/.ssh/
id_ed25519.pub
ssh -T git@gitee.com
成功!!!!!
开始你的:git clone XXXXX