如何设置git SSH keys
检查是否有SSH keys
- https://docs.github.com/en/authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys
- Open Git Bash
ls -al ~/.ssh
- 查看id_rsa.pub 等
生成新 SSH key
- https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
ssh-keygen -t ed25519 -C "your_email@example.com"
- 老系统
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
- 老系统
部署公钥管理
- 上传公钥
测试连接
- 不同的服务商的地址不一样而已
ssh -T git@github.com