Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My ultimate goal is to be able to put files onto my Amazon EC2 server. After a month of failed attempts at getting SSH access to the server, I have decided to try s3cmd and eventually migrate files from my S3 bucket to my EC2 server. When running s3cmd --configure in CygWin, I enter the following path for the GPG program.

Path to GPG program: "C:/Program Files (x86)/Git/bin/gpg.exe"

I have Git installed, and gpg.exe at this location seems to run, but I get this error:

ERROR: Test failed: GPG program not found

Can I use Git's gpg.exe file with s3cmd in Cygwin? Should I install some other GPG program?

share|improve this question
What does the s3 config file show for that value? I'm afraid I don't know its location on a Windows box, but on linux / mac its default is: ~/.s3cfg I strongly suspect this is as simple as s3cmd choking on parsing the path from the config file. Either the quotation marks or the space in the path. To debug, try these versions of the path as well: "C:/Program\ Files (x86)/Git/bin/gpg.exe" and C:/Program Files (x86)/Git/bin/gpg.exe. One escapes the space. The other leaves out the quotes. – Christopher Jul 18 '12 at 14:10
Thank you for the suggestions... The first version is detected as an MS-DOS style path, and I tried the second one before, which resulted in "GPG program not found", although now when I try it, it gives me "Test failed: Encryption verification error" – FlyingMolga Jul 19 '12 at 14:47
up vote 0 down vote accepted

One of the S3cmd prompts, in its exact text, is:

Path to GPG program [/usr/bin/gpg]:

Upon hitting enter, this value will be used. gpg.exe can be run from cygwin\bin\gpg.exe, because cygwin/usr/bin maps to cygwin/bin (The reason I couldn't find it before because I didn't know this.)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.