一、生成密钥
命令行执行
ssh-keygen
二、查看密钥
把id_rsa.pub的内容复制到keys增加页面
window 默认地址: "C:\Users\Administrator.ssh\id_rsa.pub”
Mac 默认地址(能够通过open命令间接关上): /Users/xz/.ssh/id_rsa.pub
三、增加密钥
gitlab,github 密钥增加页面地址:
- https://gitlab.xxxxxx.cn/prof...
- https://github.com/settings/keys