Ubuntu 无法在s3cmd上使用加密选项

Ubuntu 无法在s3cmd上使用加密选项,ubuntu,encryption,amazon-s3,s3cmd,Ubuntu,Encryption,Amazon S3,S3cmd,我有两个简单的脚本可以在Amazon web services上向S3上传和下载一些代码: #####Upload Script zip -r file.zip www s3cmd del s3://mybucket/file.zip --encrypt s3cmd put file.zip s3://mybucket --encrypt rm -rf file.zip #####Download Script rm -rf /home/ubuntu/www/* s3cmd sync s3:/

我有两个简单的脚本可以在Amazon web services上向S3上传和下载一些代码:

#####Upload Script
zip -r file.zip www
s3cmd del s3://mybucket/file.zip --encrypt
s3cmd put file.zip s3://mybucket --encrypt
rm -rf file.zip

#####Download Script
rm -rf /home/ubuntu/www/*
s3cmd sync s3://mybucket/file.zip /home/ubuntu/ --encrypt
unzip -u /home/ubuntu/file.zip -d /home/ubuntu/
rm -rf /home/ubuntu/file.zip
但是,这些脚本只有在我不使用
--encrypt
选项时才能工作。结果文件有11MB没有加密,解压很好,9MB使用加密,但在解压时给我一个错误。由于没有
--decrypt
选项,并且在下载时使用
--encrypt
也不起作用,我如何从S3解密文件

我用加密密码正确配置了s3cmd,并且通过了配置测试。在任何人询问之前,错误就出现了:

Archive: /home/ubuntu/file2.zip End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. note: /home/ubuntu/file2.zip may be a plain executable, not an archive unzip: cannot find zipfile directory in one of /home/ubuntu/file2.zip or /home/ubuntu/file2.zip.zip, and cannot find /home/ubuntu/file2.zip.ZIP, period. 存档:/home/ubuntu/file2.zip 找不到中央目录签名的结尾。此文件不是 zipfile,或它构成多部分存档的一个磁盘。在 后一种情况下,将在上找到中心目录和zipfile注释 此存档的最后一个磁盘。 注意:/home/ubuntu/file2.zip可能是一个普通的可执行文件,而不是归档文件 解压:在/home/ubuntu/file2.zip或 /home/ubuntu/file2.zip.zip,找不到/home/ubuntu/file2.zip.zip,句号。
当前上游主分支头81e3842f7afb中的加密似乎已中断。最好是直接加密和放置加密文件。当然--使用[sync]命令加密不起作用。

我在尝试直接从S3下载备份而不是使用
s3cmd get
检索文件时遇到了这个问题。当我使用s3cmd检索它时,文件解压没有任何问题。您不需要使用任何标志来运行它来解密。它会直观地完成它。

谢谢!zip/unzip包上的加密似乎也被破坏。不得不用gpg来解决我的问题。这在最新的Ubuntu 14.04上发生