我正在尝试设置统一以在我的主机操作系统和虚拟操作系统之间同步目录。我可以毫无问题地从我的主机终端 ssh。当 Unison 尝试 ssh 时,我收到“致命错误:失去与服务器的连接。”。更多细节:
我已经使用 Oracle VM Virtualbox 在我的主机系统(Ubuntu 14.01)上设置了一个虚拟机(基于 Cloudera VM-4.1.1 虚拟机)。
我在 VirtualBox 管理器中设置了网络设置,以便我可以从我的主机 ssh 到虚拟机。(在设置>网络下,我设置适配器 1 连接到桥接适配器)
使用此设置,我可以从我的主机终端成功 ssh 到虚拟机,但一致会产生上述错误。
这是齐声配置文件:
# 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
其中 some/local/path、some/remote/path 和 xxx.xxx.xxx.xxx 都有有效值。有任何想法吗?
PS:如果这是题外话,我很抱歉。我不确定把它放在哪里。