1、先配置 git config --global user.name "pangchengyong" git config --global user.email "pangchengyong@gmail.com"
2、配置好了开始生成key
ssh-keygen -t rsa -C "pangchengyong@gmail.com"
接着根据提示 按下三次回车 什么都不要输入哦
按3个回车,密码为空。
Your identification has been saved in /home/tekkub/.ssh/id_rsa. Your public key has been saved in /home/tekkub/.ssh/id_rsa.pub. The key fingerprint is: ………………
最后得到了两个文件:id_rsa和id_rsa.pub
本文介绍了如何配置Git用户名及邮箱,并通过ssh-keygen命令生成SSH密钥对,包括私钥id_rsa和公钥id_rsa.pub,用于实现免密码远程访问。
959

被折叠的 条评论
为什么被折叠?



