(solved) gpg-agent (or pinentry) + ssh (or su) not working on Linux / Unix

The case: you connect to a remote computer with ''ssh'', or may be you just do ''su'' to become another unix user, then start something like gpg-agent --daemon /bin/bash or may be you worked hard so ''gpg-agent'' is launched from your ''.profile'' or something like that. Then, you try to decrypt a file: gpg -d my-file.gpg and you expect ''gpg'' to enter into some dialog to ask you the passphrase. Furthermore, you expect that you won't have to enter the passphrase again if you decrypt the same file once more a few minutes from now.
Syndicate content