Connect to mercurial via ssh on windows

Can anyone point me in the direction of a simple step by step guide on how to connect to the mercury repo via ssh on windows. I'm really struggling to hug him around and so far I get a series of errors all the time. Any help would be appreciated.

+2


a source to share


2 answers


take a look at this http://www.codza.com/mercurial-with-ssh-setup-on-windows



+2


a source


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







All Articles