How to get the GitHub SSH public key under Win7

Source: Internet
Author: User

1. Download gitwin7 Client

2. Open "Git bash" tool, initialize the registered git account, email

$ ssh-keygen-t rsa-c "[email protected]"//[email protected "refers to a GitHub mailbox, or you can return by default

Enter file in which to save the key (/C/USERS/ADMINISTRATOR/.SSH/ID_RSA):

Enter passphrase (empty for no passphrase):

Enter same Passphrase again:

Your identification have been saved in /c/users/administrator/.ssh/id_rsa.

Your public key had been saved in /c/users/administrator/.ssh/id_rsa.pub.

The key fingerprint is:

SHA256:C6UB9JIJ8JLLDD4SII5DQCZBWG0BTIITKQMHZ9X0M40 [email protected]

The key ' s Randomart image is:

+---[RSA 2048]----+

|          . |

|         O. |

|. . . .        |

|..     . =       |

|+ + . .      E. |

| [Email protected] B.       O. |

|% B X.        . |

| Ob. B X |

|=**oo. |

+----[SHA256]-----+

The output from above can always be the location of the private key and public key

3. Upload the public key to the corresponding server

3.1 Web-side GitHub

Enter the/c/users/administrator/.ssh/directory in the Win7, the text editor opens the id_rsa.pub, copies the content, and then opens the Git settings ssh interface, paste it in to save

3.2 Self-built GitHub server

Copy the file/c/users/administrator/.ssh/id_rsa.pub and place it under the Access user of the Linux server under the. SSH directory (a bit, this is the directory, no one is created), and then the ID_ The contents of the Rsa.pub file are appended to the Authorized_keys

$ cat Id_rsa.pub >> . SSH / Authorized_keys



This article is from the "Dong Yonggang blog" blog, make sure to keep this source http://dongyonggang.blog.51cto.com/9784442/1856957

How to get the GitHub SSH public key under Win7

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.