Skip to content

Instantly share code, notes, and snippets.

@gitllermopalafox
Last active April 23, 2016 04:36
Show Gist options
  • Select an option

  • Save gitllermopalafox/0d784bffb1924f03eb14 to your computer and use it in GitHub Desktop.

Select an option

Save gitllermopalafox/0d784bffb1924f03eb14 to your computer and use it in GitHub Desktop.
Add more than one private key to the same ssh server / Agregar más de una llave privada a un servidor ssh
Host *.kd.io
User username
IdentityFile ~/.ssh/koding
ProxyCommand ssh -i ~/.ssh/koding %r@ssh.koding.com nc %h %p
Host gitlab.com-repo1
Hostname gitlab.com
User git # Opcional
IdentityFile ~/.ssh/key_repo1
Host gitlab.com-repo2
Hostname gitlab.com
IdentityFile ~/.ssh/key_repo2
# Ejemplo de uso
# git clone git@gitlab.com-repo1:username/repo_name.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment