您的位置:首页 > 其它

配置ssh-keygen比较具体比较小白的步骤

2016-12-15 14:46 246 查看
原文地址:http://blog.csdn.net/tutuzhuz/article/details/42487121

首先在终端中输入  ssh-keygen -t rsa -C "你的邮箱地址” 回车

出现这条语句后  Enter file in which to save the key (/Users/*****/.ssh/id_rsa):
 回车
Overwrite (y/n)?  在这条后面 输y 回车
然后是输入密码和重复密码

不用输入一直回车就可以

   Enter passphrase (empty for no passphrase): 

Enter same passphrase again:

出现下面这些就是配置完成了
The key fingerprint is:
27:ed:46:9e:2b:…50:5f:47:7f:ed:c7:42:39 zzz@abc.com
The key's randomart image is:
+--[ RSA 2048]----+
|         ..   ..o|
|        .  . . oo|
|         .  . E +|
|         ..  . +.|
|         . +     |
|        o*..   ..|
|       o +=      |
|        o...     |
|         ..      |

+-----------------+

然后前往这里/Users/*****/.ssh/id_rsa  会有两个文件  打开 .pub 的那个,拷贝里面所有的内容到你的SSH KEYS  key 里面 就好了

昨天熟悉了一下gitflow的操作流程和具体命令。

有兴趣的可以看看这个链接
http://danielkummer.github.io/ href="http://lib.csdn.net/base/git" target=_blank>Git-flow-cheatsheet/index.zh_CN.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: