跳转到正文
粥盐籽
返回

GitHub SSH 密钥配置

生成 SSH 密钥

ssh-keygen -t rsa -C 'YourEmail'
# 其实直接 ssh-keygen 也可以
# -t 是指定 密钥类型 -C 是注释

生成的密钥在用户目录的 .ssh 文件夹下

配置 Git

git config --global user.name = 'YourName'
git config --global user.email = 'YourEmail'

上传密钥

在用户目录下找到 .ssh/id_rsa.pub 复制文件内容 在 GitHub 中,Setting - SSH and GPG Keys - New SSH key 中添加即可

参考


分享此文到:

上一篇
Nuitka 打包 Python 为可执行文件