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 "[email protected]" -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

 

Guess you like

Origin www.cnblogs.com/Asatic/p/11934745.html