LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-17-2011, 08:24 AM   #1
mesuutt
Member
 
Registered: Jan 2011
Location: İstanbul
Distribution: Slackware,Debian
Posts: 62

Rep: Reputation: 1
Question How can I decrypt GPG file that encrypted with my lost private key ?


Hi

I know little use gpg.
I have a encrypted file with gpg.
I encrypted this file around one years ago on my old PC for learn gpg and I want to decrypt this file.
I found my public key on "keys.gnupg.net" key server.


Now I running
Code:
gpg myfile.gpg
and I am getting this error

Code:
gpg: encrypted with 2048-bit ELG-E key, ID B501E694, created 2011-01-24
      "janissaryy (GPG Key of janissaryy) <janissaryy@hotmail.com>"
gpg: decryption failed: secret key not available
How can I decrypt this file?

Thanks in advance

Last edited by mesuutt; 12-17-2011 at 08:27 AM.
 
Old 12-17-2011, 09:06 AM   #2
sinuhe
Member
 
Registered: Apr 2010
Location: Utah
Distribution: Slackware
Posts: 53

Rep: Reputation: 9
private key

You must have your private key (in $HOME/.gnupg/). If you did not back up that directory, you cannot 'gpg -d' data encrypted with either the public or private key. I suspect only a signature can be checked with a public key.

Unfortunately, I believe the answer to your question is you can't.
 
Old 12-17-2011, 10:49 AM   #3
mesuutt
Member
 
Registered: Jan 2011
Location: İstanbul
Distribution: Slackware,Debian
Posts: 62

Original Poster
Rep: Reputation: 1
I have not private key because I did not know I must keep my private key.
I formatted the pc that my private key is in.

Must I keep private key always, if I using gpg ?
Can't I decrypt file never ?
 
Old 12-17-2011, 10:59 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by mesuutt View Post
Must I keep private key always, if I using gpg ?
Yes. You must always store your private key in a safe place. And make a backup and store the copy somewhere else safe.


Quote:
Originally Posted by mesuutt View Post
Can't I decrypt file never ?
You can not decrypt an encrypted message that you do not have the private key for. If you could decrypt it then GnuPG would be worthless.
 
Old 12-17-2011, 11:07 AM   #5
mesuutt
Member
 
Registered: Jan 2011
Location: İstanbul
Distribution: Slackware,Debian
Posts: 62

Original Poster
Rep: Reputation: 1
Ok. Thanks
 
  


Reply

Tags
gpg



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
decrypt pgp file using gpg and passphrase learn.dw29 Linux - Security 2 10-10-2011 01:50 PM
GPG: Bad session key gpg between gpg on linux and gpg gui on windows XP konqi Linux - Software 1 07-21-2009 09:37 AM
Decrypt an AES-128 bit encrypted file flouran Linux - Software 3 10-05-2008 07:00 PM
importing private gpg key into ubuntu... mia_tech Linux - Newbie 6 05-03-2008 03:07 AM
if they got my gpg private key...... qwijibow Linux - Security 1 10-21-2003 12:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:45 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
Open Source Consulting | Domain Registration