Home > Article > Development Tools > A brief analysis of how to generate a public key in the Gitee platform
Gitee is a well-known code hosting platform in China. When using this platform for code hosting, in order to ensure code security and user authentication, public and private keys need to be generated in the Gitee account.
The public key and the private key are a pair of keys, generated by an encryption algorithm. The public key can be released publicly, and the private key must be kept only by the owner. Whether it is regenerated, extracted or stored, it must be kept well. , do not leak it to unknown platforms or unknown people.
This article will teach you how to generate a public key in the Gitee platform.
First, open the Gitee website in your browser and log in with your account.
After logging in, enter the account interface and click the "Personal Center" button in the upper right corner to enter the Personal Center page.
In the personal center interface, click "SSH Public Key" in the left navigation bar to open the SSH key page.
In the SSH key page, click the red button "Add Key", then enter your "Key Name" and add your Copy the public key to "Key Content" and click the "Add Key" button to successfully generate the public key.
After generating the public key, you will see an interface containing "Public Key Fingerprint" and "Public Key Content". Copy to your computer's clipboard.
Wherever you need to use the key, paste the public key into the request and store the private key in the computer where the private key belongs so that Perform key authentication.
Summary
Through the above steps, you have completed the process of generating a public key on the Gitee platform. When using the Gitee platform for code hosting, please ensure that your public and private keys have been correctly generated and the private key has been safely stored on your local computer. This can ensure the security of your code and ensure correct authentication. .
The above is the detailed content of A brief analysis of how to generate a public key in the Gitee platform. For more information, please follow other related articles on the PHP Chinese website!