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/

The key fingerprint is:


The key ' s Randomart image is:

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

|          . |

|         O. |

|. . . .        |

|..     . =       |

|+ + . .      E. |

| [Email protected] B.       O. |

|% B X.        . |

| Ob. B X |

|=**oo. |


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, 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/ 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 file are appended to the Authorized_keys

$ cat >> . SSH / Authorized_keys

This article is from the "Dong Yonggang blog" blog, make sure to keep this source

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: and provide relevant evidence. A staff member will contact you within 5 working days.