Почему TortoisePlink.exe показывает «Нет поддерживаемых методов аутентификации», где plink.exe работает нормально?

8705
Piotr Dobrogost

У меня установлены TortoiseHg 2.3 64 bit и TortoiseGit 1.7.7 64 bit на Vista 64 bit.

Оба TortoiseHg ( ssh = "C:\Program Files\TortoiseHg\TortoisePlink.exe" -ssh -2 -C -batchвход в mercurial.ini) и TortoiseGit ( GIT_SSHпеременная окружения набор в C:\Program Files\TortoiseGit\bin\TortoisePlink.exe) настроены на использование замазки в палить (интерфейс командной строки с концами PuTTY назад) версии распределенной с ними.

У меня есть Pageant (клиент аутентификации PuTTy) и загружен правильный ключ ssh. Однако любая hgили gitкоманда приводит к появлению диалогового окна ошибки под названием PuTTY Fatal Error с сообщением:

Отключено: нет поддерживаемых методов аутентификации. (сервер отправлен: publickey)

При этом с помощью оригинального plink.exe, предоставляемого вместе с PuTTy, работает.

Почему TortoisePlink не работает?

9
Похоже, что авторы Tortoise * использовали измененный plink, чтобы показать вам приглашение на ввод пароля, и в процессе, возможно, сделали его несовместимым с другими методами аутентификации. Не могли бы вы указать файлы конфигурации на оригинальную версию и посмотреть, что произойдет? billc.cn 12 лет назад 0
Установка оригинального plink в конфигурационных файлах решает проблему, но мне любопытно, почему фирменные версии не работают. Тем более, что я помню, что один из hg работал в прошлом. Piotr Dobrogost 12 лет назад 0
@ billc.cn - TortoisePlink имеет ** только ** модальные окна при отключении удалены Lazy Badger 12 лет назад 1
Вы пытались удалить все и любые параметры командной строки для Mercurial (возможно, только добавление -v - хорошая идея) Lazy Badger 12 лет назад 0
@LazyBadger Какие параметры Вы имеете в виду? Piotr Dobrogost 12 лет назад 0
С `ssh =" c: \ Program Files \ _Tools \ TortoiseHg \ TortoisePlink.exe "` я работаю только с моим Pageant (x32, если это имеет значение) Lazy Badger 12 лет назад 0
Вы уверены, что добавили свой закрытый ключ в Pageant? Drahakar 12 лет назад 0

3 ответа на вопрос

1
Sam W

There is a problem with 64-bit TortoiseSVN working with 32-bit pageant. Either use 32-bit TortoiseSVN (IMO there is no real need for it to be 64-bit). Unofficially, the devs only supply 32-bit binaries. A 64-bit build of PuTTY is available here.

It seems that the TortoiseSVN devs put the blame on PuTTY...

0
Robert Važan

You can get such cryptic error message for many reasons. If it works with original plink though, chances are that there is something wrong with TortoisePLink and Sam's answer might help.

Nevertheless, it's not (entirely) true that you need 64-bit putty with 64-bit TortoisePLink. I am happily committing over 64-bit TortoisePLink taking keys from 32-bit pageant.

You aren't listing full URL of the repository and the connection info used with putty. Perhaps there is a subtle difference that's causing one to break while the other works.

Generally, the error message is telling you that there's no match between server keys and client keys. One instance where this is likely to happen is when you use incorrect username (e.g. yourusername@bitbucket.org instead of hg@bitbucket.org).

0
joseph_morris

I ran into this with TortoiseSVN, Windows 7 64 bit. Just getting the 64 bit version of Putty/Pageant did not do the trick, I continued to get the same errors. What did work for me was what is an alternative checkout URL format listed under the "Configuration Variants (pageant)" section of this page, which essentially says that instead of putting the FQDN of your server, you can just put your PuTTY session name in the checkout URL:

svn+ssh://[remote-username]@[putty-session-name]/usr/local/svn/repos/myrepo