Bird Day: Add ssh to Github

Source: Internet
Author: User

It's just a real-賅, simple , bird-day diary.

Recorded the password blind in OSX to add SSH to GitHub's process

To clone a source code locally from Github, you will find the SSH secret hierarchy

To get to the official web to help the cat painting Tiger as follows:

1. Open the Shell keys

ls -al ~/. SSH

2. If there is success in the show. Pub in RSA exists can jump down

3. Whether to create a new

Ssh-keygen 4096 "Thy Email Account "

(The size is sensitive, the last C is a big write), the too many argument is generally the size of the problem

3. Back to the obvious

Enter file in which to save the key

Key into the record, you can return directly to the car

4. Back to the obvious

Enter Passphrase

5. Key-in password, can be directly returned to the car

6. Repeat the password to return directly to the car

7. Back to the obvious

Sha256:dkdgfbid94li7lt2hfac87vnbl09vlljch1ubtvhlj your email The key ' s randomart image is:+---[RSA 4096]----+|   . O..         | |   O.   .        | |  + .    ...||     .. O .....  ++||      . S+ o. o.=| |      . o  + o  +o| |     o +.o.o  . +=| |      * o...+  eo| |     o+*...+   +=|+----[SHA256]-----+

8. Make sure that the SSH agent is in the enabled state and that it returns the PID

" $ (ssh-agent-s) "

9. Add a well-done keys to SSH

ssh-add ~/. ssh/id_rsa

10. Duplicate key to Clipboard

Pbcopy < ~/. ssh/id_rsa.pub

11. Anyway, I stuck the key on the dash, and it's not safe to do anything, anyway.

And then it's logging on to GitHub and sticking the key in.

Bird Day: Add ssh to Github

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.