Git SSH public key authentication failed with git on Azure DevOps

后端 未结 10 1725
醉酒成梦
醉酒成梦 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:24

    I believe @Schalton's comment is right: SSH validation is failing, so it prompts for the pass.

    Had the same problem. "Solved it" by generating the key as the default value ('id_rsa') instead of using other names (tried other names and none of them worked).

    [####@#### .ssh]$ ssh-keygen -t rsa
    Generating public/private rsa key pair.
    Enter file in which to save the key (/home/guille/.ssh/id_rsa): id_rsa
    Enter passphrase (empty for no passphrase):
    Enter same passphrase again:
    Your identification has been saved in id_rsa.
    Your public key has been saved in id_rsa.pub.
    

    EDIT: As noted by @LHM the value default (no input needed) for the file in which to save the key is showed in parenthesis.

提交回复
热议问题