生成rsa公钥秘钥、并配置git ssh 链接

1、下载安装git

2、执行命令:  ssh-keygen -t rsa -C "[email protected]

    windows 使用git shell 执行

3、查看rsa 秘钥和公钥

进入用户目录下的.ssh目录,unix类系统执行此命令: cd ~/.ssh/ && ls

以 rsa.pub结尾的就是rsa公钥

4、配置git的ssh链接

从setting菜单进去找到ssh key设置,把公钥填充到对应的github服务上即可。

猜你喜欢

转载自www.cnblogs.com/afraidToForget/p/11432618.html