Skip to content

Instantly share code, notes, and snippets.

@nordineb
Last active August 16, 2022 08:50
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nordineb/cfe3259b09fc68829518c6b5b9ee131c to your computer and use it in GitHub Desktop.
Save nordineb/cfe3259b09fc68829518c6b5b9ee131c to your computer and use it in GitHub Desktop.
Azure DevOps, ssh-rsa, openssh

I wasn't able to git fetch from Azure DevOps repos after upgrading openssh on my computer.

ssh -V
  OpenSSH_8.8p1, OpenSSL 1.1.1l  24 Aug 2021

Turns out that OpenSSL has now turned off ssh-rsa by default:

This release disables RSA signatures using the SHA-1 hash algorithm by default.

But Azure DevOps doesn't support anything else... Add the following to your config file to re-enable ssh-rsa for Azure DevOps:

cat  ~/.ssh/config
  Host ssh.dev.azure.com
      IdentityFile ~/.ssh/azuredevops_rsa
      HostKeyAlgorithms +ssh-rsa
      PubkeyAcceptedKeyTypes +ssh-rsa

https://developercommunity.visualstudio.com/t/support-non-rsa-keys-for-ssh-authentication/365980

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