cd ~/.ssh/
ssh-keygen -t ed25519 -C "project_name_deployment"
- Input a file path to save your SSH key pair to. Example
project_name_deployment_rsa
- Enter a passphrase if you want. You can skip creating it by pressing
Enter
twice. - Backup the key somewhere safe and secure
- Open project page https://gitlab.com/team_name/project_name
- Settings -> Repository
- Expand
Deploy Keys
section - Copy the output of
cat ~/.ssh/project_name_deployment_rsa.pub
- Use it in the
Key
field