首页 > 代码库 > windows 平台生成git key

windows 平台生成git key



jike@20161008-173839 MINGW32 ~/.ssh
$ cd

jike@20161008-173839 MINGW32 ~
$ mkdir ~/.ssh

jike@20161008-173839 MINGW32 ~
$ cd .ssh/

jike@20161008-173839 MINGW32 ~/.ssh
$ ssh-keygen -t rsa -C P‘‘
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/jike/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/jike/.ssh/id_rsa.
Your public key has been saved in /c/Users/jike/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:1oyTPAJX+/Mh077k/Q1tTUqz6nKrwKmgzV6t/MWMm8E P
The key‘s randomart image is:
+---[RSA 2048]----+
|        .        |
|       . .       |
|    . . .        |
|     o . * .     |
|      . S B o o .|
|       * B * o *.|
|    . . E + + + +|
|   + + o *.o.+ o.|
|  ..+ +.+ .=*...o|
+----[SHA256]-----+


jike@20161008-173839 MINGW32 ~/.ssh
$ ll
total 5
-rw-r--r-- 1 jike 197121 1679 十月 14 11:22 id_rsa
-rw-r--r-- 1 jike 197121  383 十月 14 11:22 id_rsa.pub

jike@20161008-173839 MINGW32 ~/.ssh
$ cat id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC+o+QEO4BMN1YTJg5mLzldgRn62l0Oww8aXRSryBueEO//DSAfRV16M2opyfHo0VKt4KSH0IV3GkhjKUEoCd+kBnryZQrRpPKc/dfcbu2i3LFe33LIw1dp71K3yGNmeU4sO+HYdYNqs+WsjYqkdkCLIKvgiJPeU4tuY54iM+AHZSJruL12nT0YGGbw/KTBjDMSO+M9TZG6ce5wqmJocHRiNuYTP5Fpd9Ec4n3mGtTuphceby1hnQPHlyHvcu3SG3FsZYgqULAgH6XpaXiVwQTW4cBTMZasmSC+ZFS6r0KG6EPS2Xd/vWW1JM6CQNRc7LObssu43azy2OcLTET1RG/f P





本文出自 “魂斗罗” 博客,请务必保留此出处http://990487026.blog.51cto.com/10133282/1861876

windows 平台生成git key