首页 > Windows开发 > 详细

rsync WIN10到ubuntu 20.04异常

时间:2020-07-12 22:59:35      阅读:117      评论:0      收藏:0      [点我收藏+]
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同路径

技术分享图片

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

技术分享图片

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

参考https://stackoverflow.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异常

原文:https://www.cnblogs.com/dzkjz/p/13290230.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!