Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Thanks Happy Tux again for taking time to help me.
You might recall that you taught me download the 'wget' command.
So you could either use 'wget' command or just double click it.
In the above two methods, it is impertive to use the 'import' command to attach to your key ring.
However, if you use 'recv-keys' command, the job is simple. I meant it goes directly to the key ring.
So there are 3 ways of downloading a public key.
Please tell me if understood incorrectly.
Your welcome. Yes that is correct the first two only download/open the file once you have saved that file to local disk you need to --import to keyring with the last --recv-keys being the best method to use because it goes directly into the keyring.
Let us say that I want to encrypt a file on my system. I am not going to send it to anyone.
I just want to keep it on my system as an encrypted one.
Let us assume the name of the file is ' trial1000.txt'
[root@c83-250-110-112 nissanka]#gpg --encrypt --recipient Nissanka De Silva trial1000.txt
OR
[root@c83-250-110-112 nissanka]#gpg -e -r Nissanka De Silva trial1000.txt
Essentially correct except you need to use gpg --encrypt --recipient "Nissanka De Silva" trial1000.txt with the " around the name so it will find it in the keyring.
Quote:
To decrypt the file, when I want, the following command is the correct one.
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Original Poster
Rep:
Thanks Happy Tux
Please look at the following:
--------------------------------------------------------------------------------------------
I wrote a letter and saved it on the following folder.
The name of the file is ' Testing for pgp(1).doc '
I just want to encrypt and keep it on my computer.
----------------------------------------------------------------------
[root@localhost nissanka]# gpg --encrypt --recipient 'Nissanka De Silva' 'Testing for pgp(1).doc'
gpg: can't open `Testing for pgp(1).doc': No such file or directory
gpg: Testing for pgp(1).doc: encryption failed: file open error
[root@localhost nissanka]#
---------------------------------------------------------------------
Why didn't it work? I guess the file is on another folder and it couldn't find it. I guess this will work if I copied the file to ' /home/nissanka/
How do I do without copying it on to the /home/nissanka ?
Please help me.
----------------------------------------------------------------------------
/home/nissanka/Documents
Please look at the following:
--------------------------------------------------------------------------------------------
I wrote a letter and saved it on the following folder.
The name of the file is ' Testing for pgp(1).doc '
I just want to encrypt and keep it on my computer.
----------------------------------------------------------------------
[root@localhost nissanka]# gpg --encrypt --recipient 'Nissanka De Silva' 'Testing for pgp(1).doc'
gpg: can't open `Testing for pgp(1).doc': No such file or directory
gpg: Testing for pgp(1).doc: encryption failed: file open error
[root@localhost nissanka]#
---------------------------------------------------------------------
Why didn't it work? I guess the file is on another folder and it couldn't find it. I guess this will work if I copied the file to ' /home/nissanka/
How do I do without copying it on to the /home/nissanka ?
Please help me.
----------------------------------------------------------------------------
/home/nissanka/Documents
/home/nissanka/Documents/Testing for pgp(1).doc
You would need to include the path to the file eg gpg --encrypt --recipient 'Nissanka De Silva' Documents/'Testing for pgp(1).doc' or change to the Documents directory before issuing the encryption command.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.