%p=_("Paste your public SSH key, which is usually contained in the file '~/.ssh/id_ed25519.pub' or '~/.ssh/id_rsa.pub' and begins with 'ssh-ed25519' or 'ssh-rsa'. Don't use your private SSH key.")
%p=_("Paste your public SSH key, which is usually contained in the file '~/.ssh/id_ed25519.pub' or '~/.ssh/id_rsa.pub' and begins with 'ssh-ed25519' or 'ssh-rsa'. Don't use your private SSH key.")
=f.text_area:key,class: "form-control js-add-ssh-key-validation-input qa-key-public-key-field",rows: 8,required: true,placeholder: s_('Profiles|Typically starts with "ssh-ed25519 …" or "ssh-rsa …"')
=f.text_area:key,class: "form-control js-add-ssh-key-validation-input qa-key-public-key-field",rows: 8,required: true,placeholder: s_('Profiles|Typically starts with "ssh-ed25519 …" or "ssh-rsa …"')
.form-group
.form-row
=f.label:title,_('Title'),class: 'label-bold'
.col.form-group
=f.text_field:title,class: "form-control input-lg qa-key-title-field",required: true,placeholder: s_('Profiles|e.g. My MacBook key')
=f.label:title,_('Title'),class: 'label-bold'
%p.form-text.text-muted=_('Name your individual key via a title')
=f.text_field:title,class: "form-control input-lg qa-key-title-field",required: true,placeholder: s_('Profiles|e.g. My MacBook key')
%p.form-text.text-muted=s_('Profiles|Give your individual key a title')
@@ -186,8 +186,11 @@ Now, it's time to add the newly created public key to your GitLab account.
...
@@ -186,8 +186,11 @@ Now, it's time to add the newly created public key to your GitLab account.
1. Navigating to **SSH Keys** and pasting your **public** key from the clipboard into the **Key** field. If you:
1. Navigating to **SSH Keys** and pasting your **public** key from the clipboard into the **Key** field. If you:
- Created the key with a comment, this will appear in the **Title** field.
- Created the key with a comment, this will appear in the **Title** field.
- Created the key without a comment, give your key an identifiable title like _Work Laptop_ or _Home Workstation_.
- Created the key without a comment, give your key an identifiable title like _Work Laptop_ or _Home Workstation_.
1. Choose an (optional) expiry date for the key under "Expires at" section. (Introduced in [GitLab 12.9](https://gitlab.com/gitlab-org/gitlab/-/issues/36243))
1. Click the **Add key** button.
1. Click the **Add key** button.
SSH keys that have "expired" using this procedure will still be valid in GitLab workflows. As the GitLab-configured expiration date is not included in the SSH key itself, you can still export public SSH keys as needed.
NOTE: **Note:**
NOTE: **Note:**
If you manually copied your public SSH key make sure you copied the entire
If you manually copied your public SSH key make sure you copied the entire
key starting with `ssh-ed25519` (or `ssh-rsa`) and ending with your email.
key starting with `ssh-ed25519` (or `ssh-rsa`) and ending with your email.