最近我一直无法通过 ssh 进行 rsync。每次我得到同样的错误
bash: rsync: command not found
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6]
Run Code Online (Sandbox Code Playgroud)
我在跑步
sudo rsync -av /var/www/html/somedir/ myuser@999.999.99.9:Users/myuser/Desktop/ec2backup
Run Code Online (Sandbox Code Playgroud)
请注意,出于本文的目的,用户名、IP 和目录已更改。
过去,我运行了与使用 bash_history 验证的完全相同的命令。
我尝试过的:
唯一改变的是我最近安装了 Virtualbox 和 Vagrant。我是否可能在本地机器上弄乱了身份验证/端口/等?
任何帮助是极大的赞赏。
小智 9
我的问题是我将 cwrsync_6.2.1_x64 与 SSH_for_Windows_7.7p1、LibreSSL 2.6.5 结合使用,该版本预装在 win10 2004 build 19041.685 中。
在 rsync 命令中,您需要指向特定 rsync 版本附带的 ssh.exe。例如:
rsync -avHz -e "path_to\cwrsync_6.2.1_x64_free\bin\ssh.exe" --partial ...
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
32459 次 |
| 最近记录: |