使用DeltaCopy通过rsync / Cygwin从Windows 10到Ubuntu进行备份时,我遇到一个奇怪的问题。我在Windows 10上安装了cygwin和deltacopy。我正在使用SSH私钥,该私钥存储在C:/ DeltaCopy / newkey中。 Rsync守护程序正在Ubuntu上运行。
当我在cygwin终端上运行rsync命令时,它会连接并正常运行。但是,当运行DeltaCopy控制台时,它将引发错误的权限错误。
Cygwin:
rsync.exe -v -rlt -z --chmod=a=rw,Da+x -e "ssh -l backupusr -i newkey" "/cygdrive/C/Users/backuppc/Desktop/" "backupusr@ubuntu-IP:backup/Desktop/"
sending incremental file list
sent 137 bytes received 12 bytes 298.00 bytes/sec
total size is 1,699 speedup is 11.40
DeltaCopy:
Executing: rsync.exe -v -rlt -z --chmod=a=rw,Da+x -e "ssh -l backupusr -i newkey" "/cygdrive/C/Users/backuppc/Desktop/" "backupusr@ubuntu-IP:backup/Desktop/"
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions for 'newkey' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "newkey": bad permissions
backupusr@ubuntu-IP: Permission denied (publickey).
rsync: safe_read failed to read 4 bytes [sender]: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at io.c(276) [sender=3.1.2]
我遵循了诸如here所示的将密钥组更改为用户的解决方案。
但无济于事。