dev-resources.site
for different kinds of informations.
how to get SSH Keys for gitlab for mac?
Published at
1/10/2025
Categories
gitcommand
Author
Pheak Pheasa
Categories
1 categories in total
gitcommand
open
- Generate SSH Key Run this command in your terminal to generate a new SSH key:
ssh-keygen -t rsa -b 4096 -C "[email protected]"
- Press
Enter
to save it in the default location. - Set a passphrase or leave it empty for no passphrase.
- Start SSH Agent Start the SSH agent to manage your keys:
eval "$(ssh-agent -s)"
- Add SSH Key Add your new key to the SSH agent:
ssh-add -K ~/.ssh/id_rsa
- Copy SSH Key Copy your SSH public key to paste into GitLab:
pbcopy < ~/.ssh/id_rsa.pub
-
Add Key to GitLab
- Go to GitLab > Settings > SSH Keys.
- Paste the copied key in the key field and add a title.
Done! Now you can clone or push to repositories securely.
Articles
12 articles in total
MVVM directory structure for larger project
read article
how to get SSH Keys for gitlab for mac?
currently reading
Directory structure for building a stock system using FastAPI
read article
Docker compose down with remove all everything related.
read article
To generate an SSH key in Ubuntu
read article
To reset head of your branch comment
read article
Here are the steps to prepare before you start coding a web application.
read article
How to allow remote connections to PostgreSQL on Linux
read article
To create a Docker network
read article
To view the last 100 lines of logs from a Docker container and continue to follow new logs
read article
ubuntu server create database and create new user with password for there database in postgresql.
read article
Using postgresql with nuxt3 by ORM(sequelize)
read article
Featured ones: