第一步生成指定路径下创建文件 ssh-keygen -t rsa -C 接着按下回车,输入指定路径 最后使用以下命令 git config --global core.sshCommand "ssh -i D:/.ssh/id_rsa"