主机和虚拟机服务器之间的同步同步

时间:2014-10-11 19:04:03

标签: ssh virtual-machine unison

我正在尝试设置unison来同步主机操作系统和虚拟操作系统之间的目录。我可以从我的主机终端ssh没有问题。当Unison尝试ssh时,我得到了#34;致命错误:与服务器失去联系。"。更多细节:

我已使用Oracle VM Virtualbox在我的主机系统(Ubuntu 14.01)上设置了一个虚拟机(基于Cloudera VM-4.1.1虚拟机)。

我在VirtualBox管理器中设置了网络设置,以便我可以从我的主机ssh到虚拟机。(在设置>网络下,我将适配器1连接到桥接适配器) enter image description here

使用此设置,我可以从主机终端成功ssh到虚拟机,但是unison会产生上述错误。

这是unison个人资料文件:

    # 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

其中某些/ local / path,some / remote / path和xxx.xxx.xxx.xxx都有有效值。有什么想法吗?

PS:如果这是偏离主题,我很抱歉。我不确定在哪里放置它。

0 个答案:

没有答案