**** 在git bash中键入ssh-keygen -t rsa -C "your_email@example.com",注意将这里的邮箱地址替换成你自己的邮箱地址
**** ssh-keygen -t rsa 免密码登录
因为 需要配置 ssh 免密码登录+ github ssh ,所以会导致 .ssh 目录下的id_rsa 存在覆盖的问题。
1. 在Enter file inwhich to save the key提示这个地方敲入生成私钥的名称(改名后如 id_rsa_git 系统不能识别)
2.在 .ssh 新建config 配置文件并写人
Host github.com
HostName github.com
User root
IdentityFile /root/.ssh/id_rsa_git
Host 192.168.1.112
HostName 192.168.1.112
User git
IdentityFile /root/.ssh/id_rsa