Mac 配置SourceTree SSH Key
作者:互联网
- 生成SSH
Generate a new ED25519 SSH key pair:
ssh-keygen -t ed25519 -C "email@example.com"
Or, if you want to use RSA:
ssh-keygen -t rsa -b 4096 -C "email@example.com"
- 配置git
git config --global user.name "your user name"
git config --global user.email "your email"
- 查看SSH公钥
通常包含在文件’/.ssh/id_ed25519.pub’或’/.ssh/id_rsa.pub’ 中,并以“ssh-ed25519”或“ssh-rsa”开头。
cd ~/.ssh
ls
cat id_ed25519
- 将ssh key添加到sourceTree
ssh-add ~/.ssh/id_ed25519
- 将sshkey添加到钥匙串
ssh-add -K ~/.ssh/id_rsa
- SourceTree 使用系统安装到Git
标签:rsa,SourceTree,email,Mac,ssh,Key,ed25519,id,SSH 来源: https://blog.csdn.net/qq_27375871/article/details/117357004