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