码迷,mamicode.com
首页 > 其他好文 > 详细

GitLab and SSH keys(add new key)

时间:2019-11-26 13:18:23      阅读:72      评论:0      收藏:0      [点我收藏+]

标签:lin   pre   example   cos   key   iat   class   gitlab   and   

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)

标签:lin   pre   example   cos   key   iat   class   gitlab   and   

原文地址:https://www.cnblogs.com/Asatic/p/11934745.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!