Git SSH public key authentication failed with git on Azure DevOps

后端 未结 10 1684
醉酒成梦
醉酒成梦 2021-01-04 03:10

I am trying to push a git repo from PowerShell into an Azure DevOps repo, and I keep getting different auth errors when trying to push it.

I am hoping somebody can sh

10条回答
  •  失恋的感觉
    2021-01-04 03:45

    Before this I had already tried the other answers, but nothing worked. At last, this article had the solution for me in Fedora.

    Running ssh with the -v switch (ssh -v -T git@ssh.dev.azure.com) revealed this error:

    debug1: send_pubkey_test: no mutual signature algorithm
    

    Workaround is to add this line to the client configuration file (~/.ssh/config):

    PubkeyAcceptedKeyTypes +rsa-sha2-256,rsa-sha2-512
    

提交回复
热议问题