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"

posted @ 2018-04-26 22:13  toloy  阅读(257)  评论(0编辑  收藏  举报