Skip to content

Instantly share code, notes, and snippets.

@MostafaNorzade
Created August 18, 2020 15:53
Show Gist options
  • Save MostafaNorzade/b07654ca1b1ca2cc303cdd6b19092d31 to your computer and use it in GitHub Desktop.
Save MostafaNorzade/b07654ca1b1ca2cc303cdd6b19092d31 to your computer and use it in GitHub Desktop.
1- `ssh-keygen -t rsa -b 4096 -C "your_email@example.com" ` :create new ssh_key . insert any email
2- `ls -la ~/.ssh` : view all ssh_key
3- add pub key in gitlab setting ssh_key
4- `git remote show origin` : you have get git@gilab.com/username/repository.git. if not this :
5- `git remote set-url origin YOUR_SSH_GIT_ADDRESS_with_ssh`
6- `eval $(ssh-agent -s)` : check your ssh_key
7- `ssh -T git@gitlab.com` : check
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment