git ssh 生成私钥和公钥

  1、设置git的用户名和邮箱 

  git config --global user.name "toloy"

  git config --global user.email "274696224@qq.com"

  2、查看是否有ssh密钥

  cd ~/.ssh

  3、生成密钥

  git-keygen -t rsa -C "274696224@qq.com"

原文地址:https://www.cnblogs.com/toloy/p/8955321.html