Я установил msysgit, и git использует правильный ssh.exe. Все команды выполняются в оболочке msysgit (программные файлы x86 sh.exe). Затем я установил мой файл ~/.ssh/конфигурации для этогоmsysgit git clone игнорирует конфигурацию ssh
LogLevel DEBUG1
Host bitbucket.com
HostName bitbucket.com
PreferredAuthentications publickey
IdentityFile /d/ssh/bitbucket.ppk
IdentitiesOnly yes
Тогда ssh bitbucket.com
работает хорошо:
$ ssh bitbucket.com
debug1: Connecting to bitbucket.com [131.103.20.173] port 22.
debug1: Connection established.
debug1: identity file /d/ssh/bitbucket.ppk type -1
debug1: identity file /d/ssh/bitbucket.ppk-cert type -1
, но когда я пытаюсь git clone [email protected]:User/reponame.git
SSH сообщений отладки показывает мне, что SSH не даже попробуйте выбрать bitbucket ppk, вместо этого попытайтесь использовать стандартные ключи:
$ git clone [email protected]:user/reponame.git
Cloning into 'reponame'...
debug1: Connecting to bitbucket.org [131.103.20.168] port 22.
debug1: Connection established.
debug1: identity file /c/Users/bob/.ssh/id_rsa type -1
debug1: identity file /c/Users/bob/.ssh/id_rsa-cert type -1
debug1: identity file /c/Users/bob/.ssh/id_dsa type -1
debug1: identity file /c/Users/bob/.ssh/id_dsa-cert type -1
debug1: identity file /c/Users/bob/.ssh/id_ecdsa type -1
debug1: identity file /c/Users/bob/.ssh/id_ecdsa-cert type -1
debug1: identity file /c/Users/bob/.ssh/id_ed25519 type -1
debug1: identity file /c/Users/bob/.ssh/id_ed25519-cert type -1
У меня нет идей.
$ where git
C:\Program Files (x86)\Git\bin\git.exe
C:\Program Files (x86)\Git\cmd\git.exe
Я согласен. Я добавил, что в своем ответе будет полным. – VonC