Questions tagged [gpg-agent]
64 questions
3
votes
0 answers
Using gpg4win in Cygwin | WARNING: unsafe permissions on homedir
I finally managed to configure a yubikey 4 on windows using gpg4win and cygwin. I can run the following command in Cygwin and my yubikey prompts for pin and starts blinking then it does its job properly.
echo "$(uname -a)" | gpg --encrypt --sign…

Navid Molavi
- 93
- 1
- 5
2
votes
0 answers
"gpg: decryption failed: No secret key" on another system
I'm trying to decrypt passwords in pass using gpg (they were also encrypted with gpg) on a new system with a new user. I did not format the /home section to keep everything I need (configs, passwords, .gnupg, .password-store, etc.). I think I've…

aclui dll
- 21
- 2
2
votes
0 answers
How to Setup gpg signing on vscode devcontainer without forwarding to local
Is there a way to setup gpg in vscode docker container without the remote-containers extension automatically forwaridng gpg signing (because i could not get it to work)?
I am using vscode 1.56.2 and remote-containers 0.177.2
thanks

user16175264
- 21
- 1
2
votes
1 answer
Run command (to create dir) before SSH tries to link socket given in RemoteForward
I'm currently trying to set up GnuPG Agent Forwarding via SSH.
Since I set GNUPGHOME="$XDG_DATA_HOME/gnupg" on both the local and the remote system, I'm not using the default GPG sockets paths, but instead have configured the following in my…

Lukas Schmelzeisen
- 2,934
- 4
- 24
- 30
2
votes
1 answer
GPG sign Git commit on repository owned by root
I have a Git repository owned by the root user that I can access with sudo. Normally in order to use this repo with Git, I use sudo -E git .... The -E flag is necessary so that the Git within sudo inherits my default Git configuration such as…

CMCDragonkai
- 6,222
- 12
- 56
- 98
1
vote
0 answers
How can I fix "gpg: signing failed: No secret key" for GoReleaser?
Context: Here's a GoReleaser project I'm using.
How to reproduce:
Export multiple env vars into .release_env:
GOPATH="..."
GPG_FINGERPRINT="..."
GPG_PASSWORD="..."
GPG_KEY="..."
where GPG_KEY is GPG_PRIVATE_KEY but this project calls it…

Ivan Petrov
- 135
- 2
- 8
1
vote
0 answers
Share host's GPG (forward GPG agent) with a Docker container (access host GPG from within a container)
What I need
I can sign Git commits locally on a host. I want to be able to sign Git commits in a running container too.
How can I share/mount GPG into a container or access from a container host's GPG?
What I tried
I tried to mount directories. Here…

Nairum
- 1,217
- 1
- 15
- 36
1
vote
1 answer
How to resolve invalid lockfile size of "gnupg_spawn_agent_sentinel.lock"?
The issue begins with me unable to sign my Git commit.
$ git commit --verbose -S -sam "Attempt to sign commit"
gpg: invalid size of lockfile 'C:\Users\username\.gnupg/gnupg_spawn_agent_sentinel.lock'
gpg: cannot read lockfile
gpg: can't connect to…

Christian
- 553
- 4
- 16
1
vote
1 answer
How can I stop git from use of GUI PGP key manager when signing a commit?
I am working in terminal via ssh. When I commit, I am asked for a password to unlock my private key. As long as I have no graphical session running everything works as expected.
The problem is that when I have an graphical session running (XFCE),…

abukaj
- 2,582
- 1
- 22
- 45
1
vote
0 answers
Determine what process requested pinentry
Is there a way to figure out what process triggered pinentry prompt?
In other words, imagine the prompt pops up, and you have no idea why (what process, what action triggered it). How would you figure it out?
Another question is more general - what…

DimanNe
- 1,791
- 3
- 12
- 19
1
vote
1 answer
why run this command :"gpg-connect-agent updatestartuptty /bye"
I have a arch linux in vm,
I imported my gpg keys and configs gpg as described here:
https://github.com/drduh/YubiKey-Guide
and also config pass & git to use gpg keys, and everything works fine,
so for example when I run git pull for first time it…

xmoooz
- 411
- 5
- 8
1
vote
0 answers
Signing message problem with GPG loopback pin-entry option
I am trying to encrypt and sign a file with gpg and loopback pinentry option, with the below command:
gpg --pinentry-mode=loopback --passphrase ="mypws" \
--ignore-time-conflict --ignore-valid-from \
--cipher-algo AES256 --symmetric…

alireza sadeghpour
- 649
- 6
- 20
1
vote
0 answers
Git credential gpg/pass TTY-only setup fails with "fatal: GPG_TTY is not set" eventhough it is
I try to make Git-credential-manager-core to work on ubuntu with fish in wsl2 following instructions from https://github.com/microsoft/Git-Credential-Manager-Core/blob/main/docs/linuxcredstores.md. I went with option 2.GPG/Pass and as I understand…

zaabson
- 151
- 12
1
vote
2 answers
Integrating PHP, SSH and ssh-agent
I plan to write a PHP script that makes an SSH connection. I've investigated how to do this and this looks the most promising solution: https://github.com/phpseclib/phpseclib My only issue is how to handle the fact that my SSH key has a passphrase,…

William Beaumont
- 357
- 2
- 6
- 15
1
vote
2 answers
Signing rpm without passphrase
I am trying to disable having any password when I sign , or at least to send it with the signing command.
gpg --list-keys
/root/.gnupg/pubring.gpg
------------------------
pub 2048R/B40C2563 2017-04-11 [expires: 2022-04-10]
uid …

Nsh
- 29
- 6