Earlier I used Mercurial
command line installation and it worked fine for me with default ssh client and keys location in ~/.ssh.
On my new laptop I installed TortoiseHg
. Now any remote request (like hg pull, or hg incoming) generates PuTTY Fatal Error:
Disconnected: No supported authentication methods available (server sent: publickey)
Quite similar result if i try to acces repository over ssh directly:
ssh -vT [email protected]
The problem may be solved using Pageant
(plink
): run it and add putty key, or add pageant (plink) to Mercurial config file.
BUT, i'm looking how it is possible to work in old way, without pageant or plink, using only default ssh keys location?
Looks like opposite to
git
Mercurial does not provide own ssh client, so using Plink and Pageant is mandatory, except two workarounds:Use TortoisePlink as ssh client with explicit key reference in Mercurial config (%USERPROFILE%\.hgrc or %USERPROFILE%\Mercurial.ini):
If you have installed
git
orcygwin
(or any other way to use ssh on Windows), it is possible to use third party ssh client pointing path in Mercurial config:I tried both ways -- they work excellent.
I use second one, because I use
git
distributed tools on my PC as mainssh
agent. First option is suitable if you don't havessh
alternative on your PC.Notes:
ssh
without full path specifying. In this case in Mercurial config you can use just like this: