GitHub Quick Start----Create keys, connect

Source: Internet
Author: User

First, create an account on GitHub, because the transfer between the local git repository and the GitHub repository is encrypted via SSH, so a private key and a key are generated locally

command, followed by the mailbox, to be with your own; Add the location of the output; you can press ENTER without setting a password.

lindemac-mini:~ a123$ ssh-keygen-c ' youremail '-t rsalindemac-mini:~ a123$ ssh-keygen-c ' [email protected] '-t RsaGene Rating public/private RSA key pair. Enter file in which to save the key (/USERS/A123/.SSH/ID_RSA):/users/a123/desktop/qy Enter passphrase (empty for no PASSP Hrase): Enter same passphrase Again:your identification has been saved in/users/a123/desktop/qy. Your public key has been saved in/users/a123/desktop/qy. Pub. The key fingerprint is:93:84:b7:37:eb:2f:71:78:02:3c:66:e7:c4:9f:dd:0e [email protected]the key ' s randomart image is:+- -[RSA 2048]----+|                 | |       .         |      | O.       | |       o*o+      | |       Os*oo O. ||         o=o= E. | |          =   O | | |.          O.    | +-----------------+
You can see it on the desktopTwo files QY is the private key, Qy.pub is the key


Open the Qy.pub file (you can open it with Xcode), copy the contents into the location specified by GitHub, and follow the steps below to add a public key

The name of the title is free to write.


GitHub Quick Start----Create keys, connect

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.