[TOC] # 安装 `yum install git` # 配置 ``` cd /root/.ssh git config --global user.name taot168 git config --global user.email 1280415703@qq.com ssh-keygen -t rsa -C 1280415703@qq.com ``` # 将公钥上传到github > 公钥路径 /root/.ssh/id_rsa.pub ``` 1. 在页面的用户栏的右上角,单击  Settings; 2. 在左侧边栏点击 SSH and GPG keys.; 3. 点击  New SSH key ; 4. 在Title标题区域中,为新的SSH密钥添加一个描述性标签。,r如k8s_cicd; 5. 粘贴您的钥匙插入 Key 区域中; 6. 点击  Add SSH key ; 7. 确认通过输入操作GitHub的密码 ``` 验证 ``` ssh -T git@github.com # 用 ssh 连接 github ssh -T git@github.com ```