Sponsored Content
Full Discussion: Using gpg
Special Forums UNIX and Linux Applications Using gpg Post 302648483 by tcssk on Wednesday 30th of May 2012 02:36:54 AM
Old 05-30-2012
Using gpg

I am trying to use gig in linux but it is hanging.

Code:
$ gpg --passphrase=test /tmp/test.sh
Reading passphrase from file descriptor 0 ...

When i press enter, it gives the below message:


Code:
$ gpg --passphrase=test /tmp/test.sh
Reading passphrase from file descriptor 0 ...
gpg: no valid OpenPGP data found.
gpg: processing message failed: eof


[applsuprt@rvbd-chi-spap01 tmp]$ gpg --batch --passphrase=test /tmp/test.sh

gpg: no valid OpenPGP data found.
gpg: processing message failed: eof


Could you please help.
We are using below linux:


Red Hat Enterprise Linux AS release 4 (Nahant Update 8)

Last edited by Scrutinizer; 05-30-2012 at 03:46 AM.. Reason: code tags, changed gcc to php
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

GnuPG (gpg command)

I've been blessed with the task of writing functions that will be used to encrypt / decrypt data files using the Gnupg (gpg command) software on our Solaris 9. This was just installed last friday and I've got no documentation other than what I've found on the web. I was successful in writing... (4 Replies)
Discussion started by: BCarlson
4 Replies

2. UNIX for Dummies Questions & Answers

Gpg

Hi, I have imported the details given by my friend using gpg --import <file> Now i am using the encryption technique with my friend's key in the following way: gpg --output out.pgp --batch --encrypt --recipient "FRIEND_KEY" test and i am getting the follwoing error: gpg: 421E287E:... (4 Replies)
Discussion started by: risshanth
4 Replies

3. UNIX for Dummies Questions & Answers

How to use GPG for myself on Thumb drive?

I have some sensitive data I would like to keep on a thumb drive. Now I know this is a UNIX/Linux forum and I regret to say that I'm using windows but I'm hoping that is irrelevant. So I install gpg on both windows machines: one at home and the other at work. I encrypt some stuff on the... (2 Replies)
Discussion started by: siegfried
2 Replies

4. Shell Programming and Scripting

GPG Encription problem

Dear Friends, I have been using symmetric gpg encryption. I encrypt a file as follows gpg --symmetric <file name> then It asks to enter password two times Now the problme is, I have some 700 odd files to be encrypted by using symmetric gpg encription Can u plz tell me how to do that by... (14 Replies)
Discussion started by: anushree.a
14 Replies

5. Shell Programming and Scripting

Cannot see GPG installation

Hello all I have installed gpg key be executing command gpg --gen-key and followed the on screen prompts. I have done all this stuff from my home directory Now i am unable to see the results. Where are these keys stored. Doesn't it create a new folder in my home directory and create the... (1 Reply)
Discussion started by: vasuarjula
1 Replies

6. Shell Programming and Scripting

Need help on File Encryption using gpg

Folks, Is there anyone to help on GPG file encryptions here. I got a public key from third party. I imported the key in server. I want to encrypt the public key. But without being signed , the key cannot be encrypted. When I try to sign the key using lsign command, I am getting the below... (1 Reply)
Discussion started by: dinesh1985
1 Replies

7. Shell Programming and Scripting

To pass the variable in gpg

Hi, While m using gpg manually it works fine. I want to include this command in my auto script. how to pass the passphrase and Use this key anyway? (y/N) in my script. Advance thanks. $ gpg --sign --output xx.gpg --encrypt --recipient GXS_CTE xx.ext You need a passphrase to unlock the secret... (3 Replies)
Discussion started by: chakkaravarthy
3 Replies

8. Solaris

GPG encryption utility in Solaris 10

Hi All, I am working on Solaris 10 OS on X4170M2 server. I have some .gpg encrypted files and i want to decrypt them but i dont know how to install the binary of gpg. Here is the binary in system : root@ecmstest # ls -larth total 1273904 -rw-r--r-- 1 root root 3.5M Oct 14 ... (1 Reply)
Discussion started by: Deepa Jain
1 Replies

9. Shell Programming and Scripting

GPG email attachment

Hi, Can we send gpg encrypted file as an email attachment using uuencode in linux??if so can you give me the code.. Regards, Sandeep. (1 Reply)
Discussion started by: sandeep karna
1 Replies

10. UNIX for Advanced & Expert Users

GPG encryption error ...

Hi. I'm hitting issues using gpg to encrypt a text file on Linux. gpg -c --passphrase 123 --cipher-algo AES256 test gpg: cancelled by user gpg: error creating passphrase: Operation cancelled gpg: symmetric encryption of `test' failed: Operation cancelled In this case the file test just... (3 Replies)
Discussion started by: user052009
3 Replies
AMCRYPT(8)						  System Administration Commands						AMCRYPT(8)

NAME
amcrypt - reference crypt program for Amanda symmetric data encryption SYNOPSIS
amcrypt DESCRIPTION
amcrypt requires aespipe, uuencode and gpg to work. Aespipe is available from : http://loop-aes.sourceforge.net amcrypt will search for the aespipe program in the following directories: /usr/bin:/usr/local/bin:/sbin:/usr/sbin. amcrypt calls amaespipe and pass the passphrase through file descriptor 3. The passphrase should be stored in ~amanda/.am_passphrase. HOW TO CREATE ENCRYPTION KEYS FOR AMCRYPT
1. Create 65 random encryption keys and encrypt those keys using gpg. Reading from /dev/random may take indefinitely long if kernel's random entropy pool is empty. If that happens, do some other work on some other console (use keyboard, mouse and disks). head -c 2925 /dev/random | uuencode -m - | head -n 66 | tail -n 65 | gpg --symmetric -a > ~amanda/.gnupg/am_key.gpg This will ask for a passphrase. Remember this passphrase as you will need it in the next step. 2. Store the passphrase inside the home-directory of the AMANDA-user and protect it with proper permissions: echo my_secret_passphrase > ~amanda/.am_passphrase chown amanda:disk ~amanda/.am_passphrase chmod 700 ~amanda/.am_passphrase KEY AND PASSPHRASE
amcrypt uses the same key to encrypt and decrypt data. It is very important to store and protect the key and the passphrase properly. Encrypted backup data can only be recovered with the correct key and passphrase. SEE ALSO
amanda(8), amanda.conf(5), aespipe(1), amaespipe(8), gpg(1) The Amanda Wiki: : http://wiki.zmanda.com/ AUTHOR
Kevin Till <kevin.till@zmanda.com> Zmanda, Inc. (http://www.zmanda.com) Amanda 3.3.1 02/21/2012 AMCRYPT(8)
All times are GMT -4. The time now is 01:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy