windows 你能推荐一个好的 SSH 同步工具吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1481436/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 13:11:54  来源:igfitidea点击:

Can you recommend a good SSH syncing utility?

windowssync

提问by Ariod

Can you recommend a good SSH file sync utility for Windows? For example, I have some C++ sources that I need to compile remotely. I need this utility to be simple and most of all responsive, so I can compile my sources instantly after saving, without having to wait for the sync to be triggered.

你能推荐一个好的 Windows SSH 文件同步工具吗?例如,我有一些需要远程编译的 C++ 源代码。我需要这个实用程序简单并且最重要的是响应式,所以我可以在保存后立即编译我的源代码,而不必等待同步被触发。

采纳答案by Atmocreations

for source-code, you could use something like git or subversion, paired with an ssh-connection using port-forwarding.

对于源代码,您可以使用 git 或 subversion 之类的东西,与使用端口转发的 ssh 连接配对。

in all cases you would need to trigger the sync yourself except you have a tool that watches the directory you're working on.

在所有情况下,您都需要自己触发同步,除非您有一个工具可以监视您正在处理的目录。

回答by mvladic

WinSCPsupports synchronization from both guiand command line.

WinSCP支持来自gui命令行的同步。

回答by NawaMan

Use rsync. See this. There is even an instruction to set automatic backup.

使用 rsync。看到这个。甚至还有设置自动备份的说明。

回答by muffytyrone

try this, SSHSync for windows

试试这个,SSHSync for windows

http://code.google.com/p/sshsync/

http://code.google.com/p/sshsync/

A command line applications that allows intelligent Secure FTP transmissions. SshSync only support pull type transfers, but it allows use of a Private Key to ensure that authentication is secure. A text file that contains a list of files always processed is used to check that only 'new' files are retrieved.

允许智能安全 FTP 传输的命令行应用程序。SshSync 仅支持拉式传输,但它允许使用私钥来确保身份验证的安全。包含始终处理的文件列表的文本文件用于检查是否仅检索“新”文件。

回答by kenny

Sounds like a job for a Continuous Integrationtool.

听起来像是持续集成工具的工作。

回答by discovlad

install cygwin and use rsync over ssh.

安装 cygwin 并通过 ssh 使用 rsync。

回答by Rob Kennedy

It seems to me that one way to solve your problem would be to simply use a network drive. Edit your files from the network drive, and whenever you save, any other systems connected to that drive can also access your changes, including your build server. That's what we do at my office — everyone's home directories are on NFS/CIFS shares, so we edit on our local computers, but run a script to trigger a build on any of several build servers, even multiple platforms at once. We don't have to sync anything before being allowed to compile our latest changes.

在我看来,解决问题的一种方法是简单地使用网络驱动器。从网络驱动器编辑您的文件,无论何时保存,连接到该驱动器的任何其他系统也可以访问您的更改,包括您的构建服务器。这就是我们在我的办公室所做的——每个人的主目录都在 NFS/CIFS 共享上,所以我们在本地计算机上进行编辑,但运行脚本以在多个构建服务器中的任何一个上触发构建,甚至同时在多个平台上进行构建。在被允许编译我们的最新更改之前,我们不必同步任何内容。