1.下载git
2.配置key
macdeMacBook-Pro:~ mac$ cd ~/.ssh
macdeMacBook-Pro:.ssh mac$ ssh-keygen -t rsa -C "xxx@126.com" 
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/mac/.ssh/id_rsa): 
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /Users/mac/.ssh/id_rsa.
Your public key has been saved in /Users/mac/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:1jdGkuZ7BHiwDlpVh/APXvhF2pckQvFxnF4d+GWAlKE grape1211@126.com
The key's randomart image is:
+---[RSA 2048]----+
|        +oo*=*==+|
|       . =.====o*|
|      o o E +.=o+|
|     o o * O . + |
|    .   S + B    |
|       .   = .   |
|          . .    |
|           .     |
|                 |
+----[SHA256]-----+
macdeMacBook-Pro:.ssh mac$ ls
id_rsa		id_rsa.pub
posted on 2018-08-26 16:35  grape1211  阅读(246)  评论(0编辑  收藏  举报