Connect to mercurial via ssh on windows
2 answers
Assumes: you have putty package, ppk installed and using TortoiseHg.
Here is my original c:\somerepo\.hg\hgrc
file:
[paths]
default = ssh://hg@bitbucket.org/someuser/somerepo
So what happens with ssh
? Let debug be the pull statement hg pull --debug
on the command line. I noticed that to make the call, C:\Program Files\TortoiseHg\lib\TortoisePlink.exe
instead of doing ssh
:
PS C:\somerepo> hg pull --debug
pulling from ssh://hg@bitbucket.org/someuser/somerepo
running "C:\Program Files\TortoiseHg\lib\TortoisePlink.exe" -ssh -2 hg@bitbucket.org "hg -R someuser/somerepo serve --stdio"
sending hello command
sending between command
abort: no suitable response from remote hg!
So let's just reuse the call, add compression (yay!), Non-interactive (batch) and our key:
[paths]
default = ssh://hg@bitbucket.org/someuser/somerepo
[ui]
ssh = "C:\Program Files\TortoiseHg\lib\TortoisePlink.exe" -ssh -2 -C -batch -i "c:\keys\somekey.ppk"
0
a source to share