<aside> ❓ ISSUE: How to generate SSH Key locally and cope with GitLab authentication.
</aside>
<aside> 💡 SOLUTION:
If you do not have an existing SSH key pair, generate a new one:
Open a terminal.
Run ssh-keygen -t
followed by the key type and an optional comment. This comment is included in the .pub
file that’s created. You may want to use an email address for the comment.
For example, for ED25519:
ssh-keygen -t ed25519 -C "<comment>"
For 2048-bit RSA:
ssh-keygen -t rsa -b 2048 -C "<comment>"
For RSA:
ssh-keygen -o -t rsa -C "<comment>"
Copy?Paste the key onto the GitLab SSH Key section
🔗 Refer to:
https://www.theserverside.com/blog/Coffee-Talk-Java-News-Stories-and-Opinions/How-to-configure-GitLab-SSH-keys-for-secure-Git-connections
https://www.tutorialspoint.com/gitlab/gitlab_ssh_key_setup.htm
https://www.youtube.com/watch?v=5Ck07BJDXTE&t=211s&ab_channel=CameronMcKenzie </aside>
Short-cut: SSH Key Generation
Common SSH Keys