Como configurar multiples llaves ssh para distintos repositorios en github

Crear llave y agregarla a github Crear llave ssh: ssh-keygen -t ed25519 -C "tu_correo@ejemplo.com" agregar llave al ssh-agent: ssh-add ~/.ssh/elvinguti_key Agregar llave a github. Actualizar ssh config file Edita ~/.ssh/config: Host github.com HostName github.com IdentityFile ~/.ssh/my_work_key IdentitiesOnly yes Host elvinguti.github.com HostName github.com User elvinguti IdentityFile ~/.ssh/elvinguti_key IdentitiesOnly yes seguramente necesitaras reiniciar el ssh-agent: eval $(ssh-agent -s) Ahora deberias ser capaz de clonar el repositorio o actualizar la url remota de git:...

abril 12, 2024 · 1 min · Elvin Guti