Skip to content

trying to encrpt a file using gpg

I have .tar file

 $gpg -c file.tar

it asks for a passphrase. I entered successfully.

file.tar.gpg file is created in the same folder.

Now in the pcmanfm browser, I click the file.tar.gpg. It automatically opens using Kgpg. it does not ask for any passphrase. I can see the file.tar back

How to secure my file. I dont want any one to open it without the passphrase. Even myself.

Also I tried

   killall gpg-agent

Is this because of Kgpg . If gpg-agent is remembering the passphrase. How to disable it. Will it affect my pacman or aur installing packages

Edited 9 Oct 2016. We only hold this version.

4 points8 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
4 · 100% up
Kind
Text
ID
56ley2

Author

15
posts
15
comments
1
media
View profile

8 comments

$ killall gpg-agent

And then try to open it again.

2 points

killall gpg-agent

It didnt work. I did killall gpg-agent

and again.

  gpg -c file.tar

I clicked the .gpg file in the folder. It openend again

1 points

I didn't mean re-encrypt it, I meant open it again.

$ killall gpg-agent

And then double click on the file, and see if it asks for a passphrase.

2 points
echo RELOADAGENT | gpg-connect-agent

will purge all cached keys from the gpg-agent and forces you to provide you passphrase.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.