我已经坚持了一段时间,似乎无法弄清楚出了什么问题。
我试图use s3cmd递归推送本地目录(在我的Mac上)到我的S3帐户。我跟随this guide并且在遇到sync
命令时遇到了麻烦。
我尝试先运行此操作来设置s3cmd上的凭据
s3cmd --configure
#It asks for the following...
#supply my access key
#supply my secret key
#set Default region
#encryption password - leave blank default
#GPG - leave blank default
#use https - leave default no
#Http proxy server - leave blank default
然后我提示并运行Test access with supplied credentials?
这显示以下内容,让我相信它可以连接好。
Please wait, attempting to list all buckets...
Success. Your access key and secret key worked fine :-)
Now verifying that encryption works...
Not configured. Never mind.
然后我尝试运行s3cmd命令将我的文件放入存储桶中,但是出错了。
s3cmd put -r myLocalDir/ s3://mybucket
WARNING: Module python-magic is not available. Guessing MIME types based on file extensions.
asking for bucket location
WARNING: Forwarding request to us-west-2
myLocalDir/.DS_Store -> s3://mybucket/.DS_Store [1 of 96]
6148 of 6148 100% in 0s 63.50 kB/s done
ERROR: S3 error: The request signature we calculated does not match the signature you provided. Check your key and signing method.
任何想法,我设置错误或如何检查它尝试进行身份验证的内容?我能够很好地运行读取命令(即s3cmd ls
),但似乎无法推送任何东西