LinuxQuestions.org
Visit Jeremy's Blog.
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 07-20-2009, 03:46 PM   #1
konqi
Member
 
Registered: Oct 2007
Distribution: Gentoo, Slackware
Posts: 162

Rep: Reputation: 16
GPG: Bad session key gpg between gpg on linux and gpg gui on windows XP


On Windows XP I encrypted file1.jpg to file1.jpg.gpg (this encryption is CAST5 and symetric). With Linux I try to decrypt the file with gpg. This does't work and gives the following output:

Code:
frank@daedalus /media/CORSAIR $ gpg file1.jpg.gpg
gpg: CAST5 encrypted data
can't connect to `/home/frank/.gnupg/S.gpg-agent': No such file or directory
gpg: encrypted with 1 passphrase
gpg: decryption failed: Bad session key
When I try to encrypt a file (file2.jpg) from Linux with the command "gpg -c file2.jpg". Then I can't decrypt the file under windows XP with gpg gui. I can't read the output gpg gui gives, but I think it gives the same output as under Linux.

Note that file1.jpg.gpg can be decrypted from windows and file2.jpg.gpg can be decrypted from Linux.

Why does the decryption not work?
 
Old 07-21-2009, 09:37 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Perhaps the file ~/.gnupg/gpg-agent-info-{hostname} on your machine is pointing to the wrong place. You might have a look at it.
cheers,
jdk
 
  


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
gpg / gpg-agent -- Can't connect to /root/.gnupg/S.gpg-agent jrtayloriv Linux - Security 9 06-03-2019 10:06 AM
gpg key ricnoah Red Hat 1 07-26-2007 04:22 AM
GPG Key Cottsay Linux - Software 3 09-05-2006 02:01 AM
what is gpg-key salahuddin_66 Slackware 3 05-18-2004 03:10 AM
if they got my gpg private key...... qwijibow Linux - Security 1 10-21-2003 12:22 AM

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

All times are GMT -5. The time now is 11:59 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