Skip to content

Instantly share code, notes, and snippets.

@johnkors
Created October 20, 2019 04:42
Show Gist options
  • Save johnkors/f5bb409056934ad289517e3611161bd9 to your computer and use it in GitHub Desktop.
Save johnkors/f5bb409056934ad289517e3611161bd9 to your computer and use it in GitHub Desktop.
SSH config working with Azure DevOps and others
# https://docs.microsoft.com/en-us/azure/devops/repos/git/use-ssh-keys-to-authenticate?view=azure-devops#i-have-multiple-ssh-keys--how-do-i-use-different-ssh-keys-for-different-ssh-servers-or-repos
Host ssh.dev.azure.com
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_rsa.azureaccount
IdentitiesOnly yes
User git
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_rsa
IdentitiesOnly yes
User git
@levpa
Copy link

levpa commented Jun 11, 2021

UseKeychain yes - isn't working now

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