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)的主要内容,如果未能解决你的问题,请参考以下文章