Create SSH Keys and Set Up a GitLab Account
Learn how to generate SSH keys for securely accessing C2 Platform GitLab repositories and set up a GitLab account.
Categories:
Note:
If you are not planning to contribute changes as a C2 Platform engineer and don’t require write access to C2 repositories, you can skip this step and use HTTPS to access repositories instead.Create SSH Keys
To securely access GitLab repositories, you need to generate a pair of SSH keys (public and private) using the command below. It’s advisable to use a passphrase for added security.
ssh-keygen -t rsa -b 4096 -C "tony.clifton@dev.c2platform.org"
Create a GitLab Account
- Visit gitlab.com and register for an account.
- Add your SSH public key: navigate to user Settings and go to SSH Keys .
Verify SSH Setup
To ensure that your SSH setup is configured correctly, run the following commands:
cd /tmp
git clone git@gitlab.com:c2platform/ansible.git
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified December 9, 2024: markdown linter (ce68d5c)