Eclipse generates SSH transfer keys and implements GitHub's SSH code submission

Generate public and private keys

Open eclipse preferences

Complete the following operations:


Save the key:


Note here that the blogger has already generated the key before, so this is just a screenshot of the demo. If you click Save at this time, a prompt box of "Whether to overwrite" will pop up.

Among them, id_rsa represents the private key of the asymmetric encryption algorithm rsa, and id_rsa.pub represents the public key. The private key needs to be kept by itself, and the public key can be sent to others for safekeeping. This is to allow remote users to judge the transmitted encrypted data. Whether it is operated by myself.

Add GitHub public key

Open settings in your account


Add to



Open the public key file we just saved locally, then copy all the contents, paste it in the Key column in the above figure, and click the "Add SSH key" button to complete the addition. It's so easy.


GitHub SSH code commits

Copy the ssh login address


paste


Password does not need to be filled in here.

Finally, Next, and then Finish.


Guess you like

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