In order for your public-private keypair to be of use, you must make your public key freely available to others. Be sure that you are working with your public key here since you should never share your private key. You can export your public key with the following command:
gpg —armor —export EMAIL_ADDRESS > public_key.asc
where EMAIL_ADDRESS is the email address associated with the key
Alternately, you can upload your public key to a public key server such as keys.gnupg.net so that others can use it. To do so, enter the following in a terminal:
gpg —list-keys
Then, search for the 8-digit string (the primary ID) associated with the key you want to export. Then, issue the command:
gpg —send-keys PRIMARY_ID
where PRIMARY_ID is the actual ID of that key.
Now, the private key has been uploaded to the key server and is publicly available.