GitLab and SSH keys(add new key)
Posted asatic
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了GitLab and SSH keys(add new key)相关的知识,希望对你有一定的参考价值。
Generating a new SSH key pair
To generate a new SSH key pair, use the following command:
Git Bash on Windows / GNU/Linux / macOS:
ssh-keygen -t rsa -C "your.email@example.com" -b 4096
The next step is to copy the public SSH key as we will need it afterwards.
To copy your public SSH key to the clipboard, use the appropriate code below:
GNU/Linux (requires the xclip package):
xclip -sel clip < ~/.ssh/id_rsa.pub
以上是关于GitLab and SSH keys(add new key)的主要内容,如果未能解决你的问题,请参考以下文章
如何生成 SSH keys, 并在 Github 或 Gitlab 等上添加密钥
Multiple SSH keys for different accounts on Github or Gitlab
什么是 github 操作相当于 circle ci 的 add_ssh_keys
Windows 10 OpenSSH ssh-add“代理拒绝操作”(GitLab Windows Shared Runner)
Gitlab CI/Docker:ssh-add 不断要求输入密码
ssh出错 sign_and_send_pubkey: signing failed: agent refused operation