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

来源:互联网 发布:数据预处理的内容 编辑:程序博客网 时间:2024/06/06 14:13

昨天组长让我配置ssh-keygen,网上搜了很多,试了很多次才弄好,于是就想写个比较小白比较具体的东西,让像我一样的初学者可以很明白的弄好它。不足的地方希望大家帮我指明,毕竟我没大有经验。

首先在终端中输入  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/git-flow-cheatsheet/index.zh_CN.html


0 0