Create SSH Keys and Create and Setup a GitLab account
Learn how to use SSH to access C2 Platform GitLab repositories, the recommended and most convenient protocol for Git repositories.
Categories:
Note:
If you’re not planning to contribute changes as a C2 Platform engineer and don’t have or need write access to C2 repositories, you can skip this step and use HTTPS instead of SSH to access repositories.Create SSH Keys
Generate a pair of RSA keys (public and private) with the following command. It’s recommended to use a passphrase for extra security.
ssh-keygen -t rsa -b 4096 -C "tony.clifton@dev.c2platform.org"
Create a GitLab Account
- Navigate to gitlab.com and sign up for an account.
- Add your SSH public key: go to user Settings → SSH Keys .
Verify SSH Setup
To verify that SSH is working correctly, execute 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 September 21, 2024: scripts commits_blame.py RWS-272 (78a9266)