unison problems with opensuse 11.4

People, i am running freenas with unison server (v2.32.52) to sync desktop openSuse11.4 (homedir on nfs mount) with laptop/netbook using unison. The update to 11.4 on all caused the 2.32.52 unison to have this problem with the password dialog not showing. Tried v2.40.63 but that won’t work with a unison-server on 2.32.52…

Does anyone have a solution on making the v2.32.52 work ? Tried re-make using : make UISTYLE=gtk2 but no luck.

The patch i came across i could not work out :

<>
The following patch worked for me:

— unison-2.32.52.orig/terminal.ml 2009-05-02 04:31:27.000000000 +0200
+++ unison-2.32.52/terminal.ml 2011-03-13 16:07:16.000000000 +0100
@@ -191,7 +191,6 @@
exit 127
end
| childPid →

  •      Unix.close slaveFd;
         (Some masterFd, childPid)
     end
    

=============================================================
</>

Add. info:
laptop/netbook openSuse11.4 (x86_64)
freenas (0.7.2 Sabanda (revision 5266)) (unison version 2.32.52)

On 2011-09-16 13:16, abpolak wrote:
>
> People, i am running freenas with unison server (v2.32.52) to sync
> desktop openSuse11.4 (homedir on nfs mount) with laptop/netbook using
> unison. The update to 11.4 on all caused the 2.32.52 unison to have this
> problem with the password dialog not showing. Tried v2.40.63 but that
> won’t work with a unison-server on 2.32.52…

You need the same version of unison on both clients and server.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

The following resokved the issue for me : Connect to the FreeNAS Server via SSH Without A Password.
That is exchange ssh key info with the freenas server.

Like :

1:
The first step is to make sure that you have a user with shell access. To check goto Access->Users and either edit and existing user or create a new user and make sure the “Shell access” box is ticked. You also need to be sure that the SSH server is running. Check this on the Services->SSH page.

2:
On the client machine open a terminal window and enter the command:

ssh-keygen -q -f ~/.ssh/id_rsa -t rsa

When prompted for a password just hit ENTER twice:
or
Enter passphrase (empty for no passphrase):
Enter same passphrase again:

This will generate what is known as a private key and a public key. The private key must be kept save and secure and you must never distribute it in any form whatsoever. However the public key is for public consumption and this is what we will copy over to the FreeNAS server.

3:
Copy the public key to the FreeNAS server, user the following command:

scp ~/.ssh/id_rsa.pub apo@freenas03

Where apo is the username WITH shell access and freenas03 is the address of your FreeNAS machine.

When prompted for the password enter it:

apo@freenas03 ′s password:
id_rsa.pub 100% 402 0.4KB/s 00:00

4:
Now login to your FreeNAS machine using SSH:

ssh -l apo@freenas03

And enter the password when prompted.

5:
Now the public key of your client machine needs to be added to the list of authorized clients that connect. To do this run the following commands:

cat ~/id_rsa.pub >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
rm ~/id_rsa.pub

The first command will add the key to the list of authorized keys, the second will ensure that the permissions are set correct on that file and the third will delete the .pub file you copied over with the scp command as it is now longer needed.

This made my setup working again…