Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 07-20-2009, 03:46 PM   #1
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:

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
LQ Guru
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

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.


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 7 10-20-2015 03:27 PM
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

All times are GMT -5. The time now is 10:58 PM.

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