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.

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

  1. Navigate to gitlab.com  and sign up for an account.
  2. Add your SSH public key: go to user SettingsSSH 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


Last modified April 19, 2024: 0.0.4 (12b2895)