SSH key can be added to the Gerrit account using the following steps −
Step 1 − First create an account at wmflabs.org services.
Step 2 − Next sign in to the web interface for Gerrit.
Step 3 − Then in the top right corner, click your username and select the Settings option.
Here, we have created an account with the name John to make use of Gerrit
Step 4 − Click the "SSH Public keys" option on the left-side menu and paste the SSH Public key in the field.