Search the web
Sign In
New User? Sign Up
unison-users · Users group discussion forum for Unison file synchronizer
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Using unison with putty plink.exe   Topic List   < Prev Topic  |  Next Topic >
Reply | Forward  | 
Re: [unison-users] Using unison with putty plink.exe

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



Fri Aug 5, 2005 1:32 pm

mailreg@...
Send Email Send Email

Forward
 | 
Expand Messages Author Sort by Date

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 also tried...
Martin@...
mrjcleaver
Online Now Send Email
Aug 5, 2005
12:43 pm

Sorry, I meant to say, I tried: C:\moreprgs\unison>unison -sshcmd "c:\Program Files\PuTTY\plink.exe" Unable to open connection: gethostbyname: unknown...
Martin@...
mrjcleaver
Online Now Send Email
Aug 5, 2005
12:43 pm

Im no Unison expert, however Ive gotten this problem worked out :) In you prf file include the following: sshcmd = launcher.bat Contents of launcher.bat plink...
hilton_kev
Offline Send Email
Aug 5, 2005
2:29 pm

It seems there has been tons written about this, but no authoritative answer. I don't mind searching but to be honest, having spent > 1 hour trying to figure...
Martin@...
mrjcleaver
Online Now Send Email
Aug 5, 2005
2:36 pm

... If someone is willing to write up an FAQ on this topic, I'll gladly add it to the web page. - Benjamin...
Benjamin Pierce
benjamincpierce
Offline Send Email
Aug 5, 2005
2:39 pm

Hello Martin, ... 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...
T E Schmitz
mailreg@...
Send Email
Aug 5, 2005
1:46 pm

Hi Tarlika, I did the putty set up (Notes about specific additional steps are on http://twiki.org/cgi-bin/view/Codev/UnisonKeySetup as bulletpoints) then: ...
Martin@...
mrjcleaver
Online Now Send Email
Aug 5, 2005
2:05 pm

... Something wrong with your script as you seem to be passing -server and -contactquietly to plink rather than to unison. Do this in little steps: First of...
T E Schmitz
mailreg@...
Send Email
Aug 5, 2005
2:42 pm

... Hi Tarlika, Kev, Success! (of a sorts) (full transcript on http://twiki.org/cgi-bin/view/Codev/UnisonKeySetup) (I will followup with issues about needing a...
Martin@...
mrjcleaver
Online Now Send Email
Aug 5, 2005
7:18 pm

... No. ... No. Max....
Max Bowsher
maxbowsher
Offline Send Email
Aug 6, 2005
10:24 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help