title: gpg decryption fails with no secret key error
body: <p>I have a gpg .key file that is used as passphrase for decrypting a .dat.pgp file. The encrypted .data.pgp file gets successfully decrypted on one server with same .key file using following command</p>
  
  <pre><code>cat xxx_gpg.key | /usr/bin/gpg --batch --quiet -o xxx.dat --passphrase-fd O -d xxx.dat.pgp
  </code></pre>
  
  <p>But, when I move same key to another server xxx_gpg.key and run same above command, I get following error - </p>
  
  <pre><code>gpg: decryption failed: No secret key
  </code></pre>
  
  <p>EDIT: </p>
  
  <p>I find that <code>gpg --list-secret-keys</code> returns some data on server where it works but no results are returned for other server.</p>
  
  <p>How can we configure secret key</p>