当前位置:首页 - Linux

git ssh 获取代码

作者:高景洋 日期:2020-07-13 23:28:24 浏览次数:1828

1、ssh-keygen -t rsa -C "your_email@example.com"

2、一路回车

3、见到 以下结果 表示 操作成功

     Your identification has been saved in /root/.ssh/id_rsa.
     Your public key has been saved in /root/.ssh/id_rsa.pub.

4、vi  /root/.ssh/id_rsa.pub.

5、复制第四部的内容

6、登录 git 

7、右上角,头像 settings - SSH and GPG keys -new ssh keys

8、进入服务器,到指定代码拉取下来的位置

9、git clone git@*************

10、It's ok~

本文永久性链接:
<a href="http://r4.com.cn/art136.aspx">git ssh 获取代码</a>
当前header:Host: r4.com.cn X-Host1: r4.com.cn X-Host2: r4.com.cn X-Host3: 127.0.0.1:8080 X-Forwarded-For: 18.191.103.228 X-Real-Ip: 18.191.103.228 X-Domain: r4.com.cn X-Request: GET /art136.aspx HTTP/1.1 X-Request-Uri: /art136.aspx Connection: close Accept: */* User-Agent: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) Accept-Encoding: gzip, br, zstd, deflate