ssh -o ConnectTimeout=10 -i /home/ec2-user/.ssh/remote.pem [email protected] \
-q -t 'find /var/log/ -type f -print0' \
| parallel -j 5 -0 rsync -aPvv -e "ssh -i /home/ec2-user/.ssh/remote.pem" \
[email protected]:{} /home/ec2-user/local_log/
报告的错误消息是
Unexpected remote arg: [email protected]:/var/log/DAILY.123.gz
rsync error: syntax or usage error (code 1) at main.c(1358) [sender=3.1.3]
用户在/var/log/*远程服务器目录上已读取访问权限
任何提示或建议都将不胜感激。
1st答案thanks为建议,并带有修复'{}',但出现相同的错误。
SSH-O ConnectTimeOut = 10 -I/Home/ec2-user/.ssh/remote.pem