Decrypt a file (command line)

Updated 2 years ago by Jane

After downloading an encrypted file by Public Key using SFTP Downloader, you need to decrypt it with your saved Private Key. This article will guide you how to do so.

First of all, let’s check out the version of GPG on your system and some interesting tidbits. Run the following command.

gpg --version
Note: Some GPG installations on Linux (for example Linux Mint) may require you to use gpg2
You might need to install the latest GPG command line tools at


  1. Open Terminal.
  2. Use  --decrypt option. You can also optionally specify the output file with --outputoption like below.
$ gpg --output normal.mp3 --decrypt decrypted.mp3
  1. You will be required to key in the passphrase

  1. Once you enter your passphrase. GPG will decrypt your selected file.
gpg: encrypted with 2048-bit RSA key, ID 7B6BE6A7, created 2019-09-23
"Admin <>>"
gpg: Signature made Wed 25 Sep 2019 09:57:32 AM ICT using RSA key ID E89C8EA6

How did we do?

Powered by HelpDocs (opens in a new tab)

Powered by HelpDocs (opens in a new tab)