Page 1 of 1

AESCrypt

Posted: Tue May 23, 2017 12:54 pm
by supriya1234
I am using

Code: Select all

ssh user@host aescrypt -e -p passkey /home/abc.txt
to encrypt in remote system but i want encrypted file to be saved directly in local system but not in remote system can tell me how to do it ?

Re: AESCrypt

Posted: Wed May 24, 2017 4:42 am
by paulej
You could do something like this:

Code: Select all

ssh user@host cat /home/abc.txt | aescrypt -e -p passkey -o abc.txt.aes -
That will encrypt in the local system, though.

To encrypt in the remote system, perhaps this:

Code: Select all

ssh user@host aescrypt -e -p passkey -o - /home/abc.txt >abc.txt.aes