配置github与windows的ssh连接

git config --global user.name "Git账号"
git config --global user.email "Git邮箱"
ssh-keygen -t rsa -b 2048 -C "your_email@example.com"(三次回车)

查看公钥位置
cat C:\Users\Temp/.ssh/id_rsa.pub(复制)
进入https://github.com/
1.点击右上角头像选择选择settings
2.左侧点击ssh and gpg keys
3.点击new ssh key,粘贴,起个名字windows-ssh

posted @ 2025-08-02 20:26  GOZO  阅读(20)  评论(0)    收藏  举报