Skip to content

Instantly share code, notes, and snippets.

@bondarenkod
Last active September 14, 2025 17:27
Show Gist options
  • Save bondarenkod/550128cfab47eeff95772c2981869864 to your computer and use it in GitHub Desktop.
Save bondarenkod/550128cfab47eeff95772c2981869864 to your computer and use it in GitHub Desktop.
Azure DevOps SSH git connection

As for today, here is completely working configuration:

Host ssh.dev.azure.com
  HostName ssh.dev.azure.com
  IdentityFile ~/.ssh/ado_name_date_company_git
  IdentitiesOnly yes
  PubkeyAcceptedAlgorithms rsa-sha2-512,rsa-sha2-256

Generate the key (Windows):

ssh-keygen -t rsa-sha2-512 -C "id_rsa" -f C:/Users/UserName/.ssh/ado_name_date_company_git

Note: I'm not using FIDO token or passphrase at this stage, so there are some necessary improvements, future tests and security related changes to be done.

The target OS where I'm trying to connect to the VSTS's git is OSX.

Using the next command, you can easily debug the connection attempts:

ssh -vvv [email protected]

  1. Don't forget to add a public part of the key to your profile at the https://dev.azure.com/ORG_NAME/_usersSettings/keys
  2. And the private part to the correcponding location at the target OS!

When you are trying to pull any ssh repo that includes submodules, you won't be able to do so, unless you fix the submodule's config like that (.git/config)

[submodule "packages/repo_name"]
	active = true
	url = [email protected]:v3/ORG_NAME/PROJECT_NAME/repo_name

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