首页 > 其他 > 详细

码云安装SSH私钥步骤

时间:2020-06-24 22:30:59      阅读:75      评论:0      收藏:0      [点我收藏+]

1.在git官网下载对应版本的git 并按提示安装;

2.安装成功后打开git Bash 设置用户名和邮箱

    git config --global user.name "YourName" 

    git config --global user.email "email@example.com"

3.生成SSH Key

   在git Bash 中输入ssh-keygen -t rsa -C "email@example.com",连按三次enter键,会看到生成了 一个id_rsa.pub文件

4.登录码云并添加密钥

在提示的文件目录下打开id_rsa.pub文件(或在git Bash中执行 cat id_rsa.pub命令)复制全部内容到码云添加密钥

5.测试是否连接成功

git Bash中输入: ssh -T git@git.oschina.net, 返回 Welcome to Git@OSC, yourname!则成功

 

码云安装SSH私钥步骤

原文:https://www.cnblogs.com/bbjs/p/13190133.html

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