Considering the scenario where Server1 wants to keep folder /x
synchronized between itself and Server2. So apparently one have to add a new (SSH) user to Server2 allowing for this.
So we result in a command similar to:
$ unison -batch /x ssh://username@1.1.1.1//x
What is the most straightforward way to allow this user only access to the folder /x
? What if I need to synchronize many different folders of Server2 across different servers? Do I need a user per "folder"?
With rsyncd
I could have created a configuration file defining the AAA for the folder, e.g.:
path = /x
auth users = userA, userB, userC
secrets file = ...
Is there a similar way with Unison?