`ssh -T` to VSTS(Azure Devops) authenticates successfully, but `git clone` fails

前端 未结 3 1576
南笙
南笙 2021-01-05 06:39

I recently created a second key to access Visual Studio Team Services,

ssh-keygen -t rsa -b 4096 -C \"your_email@example.com\"

so I now ha

3条回答
  •  感动是毒
    2021-01-05 07:29

    Apparently git uses only the first key provided, if that fails, git clone fails. My ssh config had a wildcard option with a key matching before the git key and therefore it did not work. After moving the git configuration to the top of .sss/config all is fine.

提交回复
热议问题