How can I encrypt a file before sftp'ing it. I am creating a text file
and I want to encrypt that file with same name and sftp it
to a remote server. I am using shell script to create text file then sftp'ing this file.
Somewhere in the shell script I like to encrypt this file before sftp'ing it to remote
server. Please advise.