GPG
gpg public.gpg=public key,public is the name of the key(recipient)
gpg --gen-key
gpg --import public.gpg
gpg --edit-key public
trust,5,y,quit OR gpg --encrypt --recipient public --trust-model always YOUR_FILE
gpg --encrypt --recipient 'File Encryption Key' files.tar.gz
gpg --output files.tar.gz --decrypt files.tar.gz.gpg

Saving the public and private key

gpg --armor --output recipient.gpg --export 'recipient'
gpg --armor --output recipient-private.gpg --export-secret-keys 'recipient'
 login to remote server
ftp -n -pi ${ftp1host} <