# How to Generate SSH Key for GitLab

> To generate an SSH key for GitLab, open Command Prompt and enter the ssh-keygen command. Next, choose the save location, enter and re-enter your passphrase to finish the creation process, and locate the new key in your selected file path.

Canonical: https://livedemo.ai/tutorials/how-to-generate-ssh-key-for-gitlab/
Apps: GitLab
Updated: 2026-10-05
Interactive demo: https://story-api.livedemo.ai/workspaces/62255d3d3304f17b8f5e2d03/stories/692a3ebcab56e05a00fe6921/preview?step=1

## Steps

1. Open Command Prompt on your device and enter " ssh-keygen -t rsa ."
2. You'll be prompted to choose where to save the SSH key.
3. Then enter a passphrase of your choice.
4. Re-enter the passphrase to finish. Now you have created a new SSH key.
5. You will find the SSH key in the file path you selected earlier.
