Git Bash and Pageant are not using keys

后端 未结 6 1482
清歌不尽
清歌不尽 2020-11-30 21:28

I\'ve got Git for Windows (configured for MinTTY and PuTTY\\plink.exe) and PuTTY installed, and I am trying to get it to work with a Bitbucket repository. I\'ve

6条回答
  •  有刺的猬
    2020-11-30 22:01

    What worked for me with Git Bash for Windows 7: convert .pkk file to OpenSSH format:

    https://www.simplified.guide/putty/convert-ppk-to-ssh-key

    Add generated key to IdentityFile .ssh/config at Git Bash, for example:

    Host repository
         # My converted OpenSSH key
         IdentityFile /c/Users/me/open-ssh.pri
    
         # This repository server uses a specific name, not usually needed.
         User git
    
         # This repository server uses a specific port, not usually needed
         Port 8322
    
         # Repository server full name
         Hostname repo.server.com
    

提交回复
热议问题