Atlassian / BitBucket Sourcetree SSH Public Key Denied

后端 未结 6 934
离开以前
离开以前 2021-01-30 02:47

I\'m working on a project in a private repository on https://www.bitbucket.com.

I\'m coding it locally, then staging, commiting and pushing the update via BitBucket\'s /

6条回答
  •  清酒与你
    2021-01-30 03:13

    I know this is resolved, but to add to the accepted answer, you don't actually need Git Bash in order for this to work. As Cupcake said, it is true that PuTTY puts out .ppk files for private keys, which won't work outside the usual PuTTY/Pageant context.

    This is because the terminal expects by default to find a file named id_rsa in ~/.ssh and PuTTY doesn't generate that by default. Git Bash's ssh-keygen does though, which is why Tom Granot's solution works. You CAN, though, through the PuTTY key generator, export the same exact file through the Conversions/Export OpenSSH Key... option in the menu. Just be sure to name it id_rsa and have it sit next to your id_rsa.pub file, and everything should work fine.

提交回复
热议问题