0
点赞
收藏
分享

微信扫一扫

【ssh秘钥配置】


ssh秘钥配置

Git Bash on Windows / GNU/Linux / macOS / PowerShell:

检查秘钥是否存在

cat ~/.ssh/id_rsa.pub

如果存在,直接粘贴秘钥,不存在,继续操作.

创建一个新的秘钥:

ssh-keygen -t rsa -C “your.email@example.com” -b 4096

之后可以直接按enter键进行跳过三个步骤.

提示创建成功后,粘贴秘钥

cat ~/.ssh/id_rsa.pub | clip

把秘钥放到GitLab上对应的位置,点击添加完成.

【ssh秘钥配置】_bash


举报

相关推荐

0 条评论