Configuring Unison to communicate over SSH
Using Windows to Unix via SSH
To start with you will need the same version of Unison installed on both machines. Run the following command to check your Unix version:
unison -version
First, download http://the.earth.li/~sgtatham/putty/latest/x86/plink.exe for Windows from the PuTTY download site.
In the same directory create batch file called unison-ssh.bat, with the following contents:
@echo off
set PLINKEXE=
set USERNAME=
set PPK=
set HOSTNAME=
%PLINKEXE% -ssh -P 22 -2 -l %USERNAME% -i %PPK% %HOSTNAME% unison -server
Now edit the Unison profile to point to the SSH server and also to include the {{sshcmd}} pointing to the new batch file
root =
root = ssh://@/
...
sshcmd =
And that’s it…