LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 09-07-2006, 01:29 PM   #91
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47

Thanks Happy Tux again for taking time to help me.
You might recall that you taught me download using the 'wget' command.

So you could either use 'wget' command or just double clicking.

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.

Last edited by Gins; 09-07-2006 at 01:36 PM.
 
Old 09-07-2006, 01:38 PM   #92
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,667

Rep: Reputation: 118Reputation: 118
Quote:
Originally Posted by Gins
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.
 
Old 09-07-2006, 02:04 PM   #93
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
Thanks Happy Tux


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

The following is my user id. I could see it when I wrote the command [gpg –list-keys]
uid Nissanka De Silva (Le Grand Homme) <nissanka@swipnet.se>

'''''''''''''''''''''''''''''''''''''''''''''
To decrypt the file, when I want, the following command is the correct one.

[root@c83-250-110-112 nissanka]#gpg --output trial1000.txt --decrypt trial1000.txt.gpg

Please tell me if I am wrong.
 
Old 09-07-2006, 04:31 PM   #94
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,667

Rep: Reputation: 118Reputation: 118
Quote:
Originally Posted by Gins
Thanks Happy Tux


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.

[root@c83-250-110-112 nissanka]#gpg --output trial1000.txt --decrypt trial1000.txt.gpg

Please tell me if I am wrong.
Yes then you will be asked for the passphrase to decrypt.
 
Old 09-10-2006, 02:34 PM   #95
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
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


/home/nissanka/Documents/Testing for pgp(1).doc
 
Old 09-10-2006, 02:43 PM   #96
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,667

Rep: Reputation: 118Reputation: 118
Quote:
Originally Posted by Gins
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


/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.
 
Old 09-10-2006, 02:55 PM   #97
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
Thanks Happy Tux. You were very quick to answer. The following is the output now. Did it work now?

[nissanka@c83-250-110-112 ~]$ su root
Password:
[root@c83-250-110-112 nissanka]# gpg --encrypt --recipient 'Nissanka De Silva' '/home/nissanka/Documents/Testing for pgp(1).doc'
[root@c83-250-110-112 nissanka]#

------------------------------------------------

I saw the following file on my system now.

Testing for pgp(1).doc.gpg

Did it work?

Last edited by Gins; 09-10-2006 at 02:57 PM.
 
Old 09-10-2006, 03:40 PM   #98
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,667

Rep: Reputation: 118Reputation: 118
Quote:
Originally Posted by Gins
Thanks Happy Tux. You were very quick to answer. The following is the output now. Did it work now?

[nissanka@c83-250-110-112 ~]$ su root
Password:
[root@c83-250-110-112 nissanka]# gpg --encrypt --recipient 'Nissanka De Silva' '/home/nissanka/Documents/Testing for pgp(1).doc'
[root@c83-250-110-112 nissanka]#

------------------------------------------------

I saw the following file on my system now.

Testing for pgp(1).doc.gpg

Did it work?
Yes it worked the Testing for pgp(1).doc.gpg file is the encrypted file created by gpg.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
link dies intermittently-seemingly at random- between win<->linux not linux<->linux?? takahaya Linux - Networking 10 03-09-2007 10:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration