-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

this seems to work for me:

  $ ssh [EMAIL PROTECTED] 'cat file1' | gpg | ssh [EMAIL PROTECTED] 'cat - > 
file2'

note the quotes.

it reads an encrypted file (file1) from the server, decrypts it locally 
and writes the decrypted data back to a file (file2) on the server.

my secret key and password stay away from the server.


- -- 
         ...atom

  _________________________________________
  PGP key - http://atom.smasher.org/pgp.txt
  762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
  -------------------------------------------------

        "You have the right to remain silent. Anything you say
         can be used against you in a court of law. You have
         the right to have an attorney present now and during
         any future questioning. If you cannot afford an
         attorney, one will be appointed to you free of charge
         if you wish."
                -- Miranda Rights, Miranda vs. Arizona 1966

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)
Comment: What is this gibberish?
Comment: http://atom.smasher.org/links/#digital_signatures

iQEcBAEBCAAGBQJCPdsKAAoJEAx/d+cTpVcinLMIALWvpMc4S0BbhjelB0zpSYiy
6agg0ajFkZwcXKFyJvmsdJRj69UThBtrPZOYWkA66EAWRSLWvx5hf4ANoN5NCE71
yAtSXSvfdmhVtJq72WmL3kZgKgNNwI66rrYdU2/1Qf/v/HwgGoxx3gaS+0VH//FM
/oju8JAARjWxvAT5hdv7qWr/MKVEQO41OvSqbIzGI8x26FGEh2tCEg8DpC3f63cP
yiKx1FtRtUEF5d2riVDHiWl17xs2qmDQV8d58LTY2BK9OS+3L2g3QIgJXTvWSy+W
XnRUg25vZ0Xc2w9XyvFPPKKKLSRh+tuEbcCUWUr3XtJDsI3PZGVVYoAMber3F8M=
=vbiJ
-----END PGP SIGNATURE-----

_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users

Reply via email to