rsync WIN10到ubuntu 20.04异常

rsync: connection unexpectedly closed (0 bytes received so far) [sender]
 rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.2]

下载了cwRsync免费版本然后参考 https://www.linuxidc.com/linux/2012-12/76874.htm

然后因为ssh与rsync同路径

rsync WIN10到ubuntu 20.04异常

且开一个terminal执行 where ssh发现很多 ssh

rsync WIN10到ubuntu 20.04异常

遂要求 添加 -e /usr/bin/ssh.exe指定ssh

参考https://*.com/questions/7261029/why-is-this-rsync-connection-unexpectedly-closed-on-windows

执行

rsync.exe -e /usr/bin/ssh.exe  -av "/cygdrive/d/cwRsync/home/John/.ssh/id_rsa.pub" root@95.***.***.***:.ssh/authorized_keys

执行

rsync.exe -avzhP -e /usr/bin/ssh.exe "/cygdrive/d/laragon/www/petapi/" root@95.***.***.***:~/petapi

rsync WIN10到ubuntu 20.04异常

上一篇:.Net、ASP.Net、C#、VisualStudio之间的关系是什么


下一篇:.Net、ASP.Net、C#、VisualStudio之间的关系是什么