Add code public cloud gitee

Each commit code to the time code of the cloud, you need to enter the account password, really inconvenient, fortunately code cloud provides us with a solution, you only need to create a secret key pair, the public key in the code to add cloud on it , the private key can be stored locally, the following step is to add the public key.

Private keys are generated on

  1. Open git bash

  2. Enter ssh-keygen -t rsa -C "your email address" can generate a key pair after three carriage returns

  3. Enter cat ~ / .ssh / id_rsa.pub to see your public key (public key) with the following results:

     

     

     

  4. The plane en route to the last e-mail address (included) to copy it from the ssh-ras (included).

     

     

  5. Open Cloud code -> Settings -> SSH public keys, there have been the following screen, we just copy the content posted to the prompt area, and finally click OK to the lower left corner

  6. Enter the password code cloud




Guess you like

Origin www.cnblogs.com/dashanboke/p/11803151.html