Git 生成SSH key的步骤
- Generating a new SSH key
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
- Ensure ssh-agent is enabled
eval "$(ssh-agent -s)"
- Add your SSH key to the ssh-agent
ssh-add ~/.ssh/id_rsa
检查SSH是否成功
ssh -T -p 443 git@ssh.github.com