Skip to content

Instantly share code, notes, and snippets.

@rqbazan
Created November 4, 2017 19:24
Show Gist options
  • Save rqbazan/ebb2cd354b3efb360649be8ae51ef823 to your computer and use it in GitHub Desktop.
Save rqbazan/ebb2cd354b3efb360649be8ae51ef823 to your computer and use it in GitHub Desktop.

Configuración para multiples claves SSH con diferentes cuentas github y/o gitlab

Antes de comenzar será mejor estar en la carpeta ssh de nuestro usuario actual

$ cd ~/.ssh

1) Crear varias claves ssh

$ ssh-keygen -t rsa -b 4096 -C "your_account_email@example.com"
Generating public/private rsa key pair. 
Enter file in which to save the key (/home/user_name/.ssh/id_rsa): id_rsa_your_description

Este comando será ejecutado tantas veces como cuentas se tenga y el nombre del archivo (id_rsa_your_description) podrían ser nombrados como:

  • id_rsa_gitlab_personal
  • id_rsa_github_personal
  • id_rsa_gitlab_work
  • id_rsa_github_work

// TODO terminar explicación

Referencias

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment