Hello Martin,
Martin@... wrote:
> Does anyone here use plink (see below) with Windows XP Unison? I am
> trying to avoid dependencies on cygwin. What setup/flags do you use?
I am using Unison with PuTTY, albeit on Win2K. But that shouldn't make a
difference for the set-up.
I set it up to synchronize with our local Linux server. I set PuTTY up
with OpenSSH keys so I don't have to key in user/password every time.
For this to work you need to start PuTTY's pageant.exe at start-up.
*Set up SSH with PuTTY*
Install PuTTY and add the folder to the PATH environment variable.
Generate OpenSSH keys with puttygen: do not create the public key by
using the button provided. Instead, cut and paste the generated key and
append it to $HOME/.ssh/authorized_keys on the server. This will create
a one-line entry as required by OpenSSH.
To keep PuTTY's pageant running, start it from the Start Menu with the
private key as parameter:
pageant.exe "D:\somefolder\putty-key-jerry.ppk"
*SSH Command for Unison*
Create a .bat script which calls the Plink connection tool. (Plink.exe
is a command-line connection tool similar to UNIX ssh.) This script is
later passed to Unison as its ssh command.
The plink command /must/ be preceded by @ to turn echoing off, or the
communication between the local Windows Unison and the one on the Linux
machine will fail because CRLFs (Windows linefeeds) will be sent. Note,
that echo off in the batch script will not do the trick.
plink is passed a connection profile (which was previously created with
puty.exe) as well as the command to be executed on the host.
@plink -ssh <profile> unison -server -contactquietly
Now you can call the local unison which in turn needs the previously
created .bat script as a parameter:
unison d:\blog ssh://server//blog -sshcmd c:\plink-script.bat
--
Regards/Gruß,
Tarlika Elisabeth Schmitz