Unison sync between host server and virtual machine

I am trying to set up unison to synchronize directories between my operating system and a virtual OS. I can't get off my host terminal with no problem. When Unison tries to ssh, I get "Fatal error: Lost connection to server". A few more details:

I have set up a virtual machine (based on Cloudera VM-4.1.1 virtual machine) on my host system (Ubuntu 14.01) using the VM VM virtual machine.

I have set network settings in VirtualBox manager so that I can ssh to the VM from my host machine (under Settings> Networking I have set adapter 1 attached to the bridged adapter) enter image description here

With this parameter, I can successfully ssh to the VM from my host terminal, but unison throws the error mentioned above.

Here is the unison profile file:

    # Unison preferences
    label = Synchronize to code and data of cloudera hadoop VM
    root = /some/local/path
    root = ssh://username@xxx.xxx.xxx.xxx//some/remote/path
    sshargs = -C

      

where some / local / paths, some / remote / path and xxx.xxx.xxx.xxx have valid values. Any ideas?

PS: I am sorry if this is off topic. I didn't know where to place it.

+3


source to share





All Articles