maz4 / mac-setup

1 stars 1 forks source link

Multiple ssh keys for gitlab - docs update #4

Closed maz4 closed 2 years ago

maz4 commented 2 years ago
  1. Generate ssh keys https://www.atlassian.com/git/tutorials/git-ssh
  2. store ssh key with location when prompted about the file name /Users/{user}/.ssh/id_rsa_gitlab/github
  3. Setup config file withmultiple ssh key references https://stackoverflow.com/questions/3225862/multiple-github-accounts-ssh-config
  4. run ssh-add ssh-add ~/.ssh/id_rsa_gitlab and ssh-add ssh-add ~/.ssh/id_rsa_github