File Transfer
/ Advanced
The File Transfer/Advanced category of the Session Options dialog allows you to configure PGP options for a session.
PGP options group
Use PGP for all transfers
Select this option to execute a command when transferring files, which could be a PGP-like encryption or decryption command.
Pre-upload command
Enter the local command to execute on the file prior to upload (e.g., PGP encryption).
Post-download command
Enter the remote command to execute on the file after download (e.g., PGP decryption).
Notes:
A third-party library such as GnuPG is required in order to do PGP-like encryption and decryption.
If "%INPUT_PATH" appears within a PGP command, it is replaced with the input file path (i.e., the file being decrypted/encrypted/signed/verified).
"%OUTPUT_PATH" is a variable that SecureFX uses that is replaced with the file resulting from the PGP operation.
A file named "file.txt" will be named "file.txt.pgp" on the remote machine following PGP processing prior to the upload operation.
A file named "file.txt.pgp" will be named "file.txt" on the local machine following PGP processing after the download operation.
When uploading files that already have a ".pgp" or a ".gpg" extension, PGP processing will be skipped.
Example of pre-upload command:
/usr/local/bin/gpg --output "%OUTPUT_PATH" --default-recipient-self --encrypt "%INPUT_PATH"
Example of post-download command:
/usr/local/bin/gpg --output "%OUTPUT_PATH" --default-recipient-self --decrypt "%INPUT_PATH"