在 Windows 上使用 MSYS2 的 rsync 传输文件遇到
看看 which ssh,八成是 Windows 版的 SSH 客户端,需要配套使用 MSYS2 的 OpenSSH 客户端才行。
#usage
connection unexpectedly closed
错误?$ rsync -avzh local remote:/
rsync error: rsync service is no running (code 43) at io.c(254) [Receiver=3.1.2]
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
0 [sig] rsync 886! sigpacket::process: Suppressing signal 30 to win32 process (pid 52260)
rsync error: error in rsync protocol data stream (code 12) at io.c(232) [sender=3.4.1]
看看 which ssh,八成是 Windows 版的 SSH 客户端,需要配套使用 MSYS2 的 OpenSSH 客户端才行。
rsync -avzh local remote:/ -e "C:\msys64\usr\bin\ssh.exe"
#usage