git ssh generate private key and public key

  1. Set git username and email 

  git config --global user.name "toloy"

  git config --global user.email "[email protected]"

  2. Check if there is an ssh key

  cd ~/.ssh

  3. Generate the key

  git-keygen -t rsa -C "[email protected]"

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324897875&siteId=291194637