【ssh秘钥配置】

ssh秘钥配置
Git Bash on Windows / GNU/Linux / macOS / PowerShell:
检查秘钥是否存在
cat ~/.ssh/id_rsa.pub
如果存在,直接粘贴秘钥,不存在,继续操作.
创建一个新的秘钥:
ssh-keygen -t rsa -C “[email protected]” -b 4096
之后可以直接按enter键进行跳过三个步骤.
提示创建成功后,粘贴秘钥
cat ~/.ssh/id_rsa.pub | clip
把秘钥放到GitLab上对应的位置,点击添加完成.
这里写图片描述

猜你喜欢

转载自blog.csdn.net/djuan15732626157/article/details/80219998