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.

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

  1. Visit gitlab.com  and register for an account.
  2. 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


Last modified November 13, 2024: translate false C2-587 (af41e45)