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]
- Don't forget to add a public part of the key to your profile at the https://dev.azure.com/ORG_NAME/_usersSettings/keys
- 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