Home > Development Tools > git > body text

A brief analysis of how to generate a public key in the Gitee platform

PHPz
Release: 2023-03-29 11:40:39
Original
1360 people have browsed it

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.

  1. Log in to your Gitee account

First, open the Gitee website in your browser and log in with your account.

  1. Enter Personal Center

After logging in, enter the account interface and click the "Personal Center" button in the upper right corner to enter the Personal Center page.

  1. Open the SSH key page

In the personal center interface, click "SSH Public Key" in the left navigation bar to open the SSH key page.

  1. Generate public key

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.

  1. Copy 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.

  1. Use public key

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!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!