I have more than 2 ssh keys which I use to connect to different servers. To be able to clone from azure devops using ssh I created a ssh key inside ~/.ssh/ad-azure
and linked it in the configuration file as shown below.
Host vs-ssh.visualstudio.com
HostName vs-ssh.visualstudio.com
User amir
IdentityFile ~/.ssh/ad-azure
IdentitiesOnly yes
PubkeyAcceptedKeyTypes ssh-rsa
now when i use git clone ssh,
git clone amir@vs-ssh.visualstudio.com:v3/test/testProject
It throws following error.
Unable to negotiate with 00.74.28.28 port 22: no matching host key type found. Their offer: ssh-rsa fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
Steps I have followed.
- Created ad-azure ssh key
- Added the key to azureDevops "SSH Public Keys"
- Trying to connect, failing
I already looked into other questions, everything seems ok to me. Can someone spot the issue?