how-to? BZR on windows with Putty SSH

James Henstridge james.henstridge at gmail.com
Wed Mar 22 19:40:40 GMT 2006


On 17/03/06, Larry Peacock <larry.peacock at gmail.com> wrote:
> ** I have not found documentation explaining how BZR can be configured
> to use putty's plink ssh transport on Windows.  A quick look at code
> in bzrlib/transport seems to indicate more coding is needed accomplish
> what was done with subversion and mercurial? **
>
> I would be willing to get bzr+ssh working on Windows and write up a
> recipe if anyone will offer a few tips on on how to approach it and
> where to start.

I don't think there is anything to use PuTTY as an SSH transport out
of the box.  It shouldn't be too difficult though:

 1. make sure you have paramiko installed.  Even when using an
external SSH transport, bzr uses paramiko's SFTP implementation.

 2. modify bzrlib/transport/sftp.py to support plink.exe.  In particular:
     * _get_ssh_vendor() to detect if plink.exe is available
     * in SFTPSubprocess.__init__(), if the ssh vendor was detected as
plink, call plink.exe with the appropriate arguments.

If you get it working, I'm sure the patch will be gladly accepted. 
Ideally it would just work out of the box.

James.




More information about the bazaar mailing list