首页 > 其他 > 详细

git生成ssh公钥方法--远程连接github仓库

时间:2019-01-20 18:18:34      阅读:178      评论:0      收藏:0      [点我收藏+]

先配置全局的用户名和邮箱

$ git config --global user.name "runoob"
$ git config --global user.email test@runoob.com

生成公钥命令

#1、cd到当前用户加目录下
cd  ~

#2、生成公钥文件
ssh-keygen -t rsa -C ‘youremal‘


#3、查看你的公钥
cat .ssh/id_rsa.pub

将公钥添加到git设置中

1、
技术分享图片

2、
技术分享图片

3、
技术分享图片

git生成ssh公钥方法--远程连接github仓库

原文:https://www.cnblogs.com/Kingfan1993/p/10295600.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!