git submodule ssh key

git 拉所依赖的项目生产ssh key

 

进入

$ cd ~/.ssh
admin@admin MINGW64 ~/Desktop
$ cd ~/.ssh

admin@admin MINGW64 ~/.ssh

admin@admin MINGW64 ~/.ssh
$ ssh-keygen -t rsa -C "abc@abc.com"
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/admin/.ssh/id_rsa):
/c/Users/admin/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/admin/.ssh/id_rsa.
Your public key has been saved in /c/Users/admin/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:I1T2ULkk5vht9kXP5wXltIZlQIgUdvi4O6APaogsQRX abc@abc.com
The key's randomart image is:
+---[RSA 2048]----+
| ===ooo. |
| E o+=+. oo|
| . .+ o+. ++.|
| o .. .... .oo.|
|o ..S.. ..+ |
|. o.o+ . =|
|o.. .. .o.. . .o|
|oo .... o . .|
|. .. .. . |
+----[SHA256]-----+

找到c:/Users/admin/.ssh/id_rsa.pub 用文本打开

将秘钥加入到git  SSHKeys 上

git submodule update --init --recursive 就可以将所依赖的模块clone下来了

 

posted @ 2017-04-01 13:34  蝼蚁尚不自知  阅读(671)  评论(0编辑  收藏  举报