Permission denied (publickey) errors on Windows when using Moovweb

后端 未结 2 861
北荒
北荒 2021-02-14 00:09

I\'m able to authenticate, generate, push etc just fine with my SSH keys and Moovweb credentials on my Mac and Linux machines.

However, on my Windows machine, using Git

2条回答
  •  渐次进展
    2021-02-14 00:36

    Quick & dirty solution: use only the default id_rsa.pub key

    Some notes:

    1. make sure you enter the right passphrase to id_rsa.pub
    2. do not use your other key, new_rsa.pub

    It turns out that Windows Git Bash doesn't quite come with all the cool utilities Mac/Linux users are used to. Specifically, you don't have ssh-agent running to help handle multiple keys. Without ssh-agent, the git command only seems to use the default id_rsa.pub key.

    You can verify this is an SSH/Windows issue following Github's awesome SSH troubleshooting guide. You'll get a Permission denied (publickey) no matter which SSH/Git server you try to connect to.

提交回复
热议问题