ssh_обмен_идентификация:Соединение закрыто удаленным хостом под Git bash

Я работаю на win7 и настраиваю git сервер с sshd. I git --bare init myapp.gitи клон ssh://git@localhost/home/git/myapp.gitв Cywgin правильно. Но мне снова нужен конфиг git Cygwin , я хочу клонировать git в Git Bash . Я запускаю git clone ssh://git@localhost/home/git/myapp.gitи получаю следующее сообщение

ssh_exchange_identification: Connection closed by remote host

, затем я запускаю ssh -vvv git@localhostв Git Bash и получаю сообщение

debug2: ssh_connect: needpriv 0
debug1: Connecting to localhost [127.0.0.1] port 22.
debug1: Connection established.
debug1: identity file /c/Users/MoreFreeze/.ssh/identity type -1
debug3: Not a RSA1 key file /c/Users/MoreFreeze/.ssh/id_rsa.
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug3: key_read: missing keytype
debug3: key_read: missing whitespace 
// above it repeats 24 times
debug2: key_type_from_name: unknown key type '-----END'
debug3: key_read: missing keytype
debug1: identity file /c/Users/MoreFreeze/.ssh/id_rsa type 1
debug1: identity file /c/Users/MoreFreeze/.ssh/id_dsa type -1
ssh_exchange_identification: Connection closed by remote host

, кажется, мои закрытые ключи имеют неправильный формат? И я обнаружил, что в закрытых ключах ровно 25 строк без BEGINи END. Я смущен, почему он сказал НЕ ключ RSA1, я полностью уверен, что это ключ RSA 2.

Приветствуются любые советы. Кстати, я прочитал первые 3 страницы в Google об этой проблеме.

46
задан Yamaneko 11 October 2012 в 18:22
поделиться