Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bitwarden SSH agent: "error: Couldn't get agent socket?" when signing Git commits #13369

Open
1 task done
adrianghc opened this issue Feb 11, 2025 · 3 comments
Open
1 task done
Labels
bug desktop Desktop Application

Comments

@adrianghc
Copy link

Steps To Reproduce

While SSH authentication when using Bitwarden as SSH agent works, I haven't managed to get Git commit signing to work yet. I have followed the instructions, the Git config is set, but I receive the following error when signing a commit:

error: Couldn't get agent socket?

fatal: failed to write commit object

How to reproduce:

  1. Set up Git and Bitwarden as per the instructions on the web.
  2. Create a Git commit.

Expected Result

The commit should be created and signed with the key set in the user.signingkey value of the Git config.

Actual Result

git commit results in the following error:

error: Couldn't get agent socket?

fatal: failed to write commit object

Screenshots or Videos

No response

Additional Context

No response

Operating System

Windows

Operating System Version

10.0.26100.3194

Installation method

Direct Download (from bitwarden.com)

Build Version

2025.1.4

Issue Tracking Info

  • I understand that work is tracked outside of GitHub. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.
@adrianghc adrianghc added bug desktop Desktop Application labels Feb 11, 2025
@bitwarden-bot
Copy link

Thank you for reporting this issue! We've added this to our internal tracking system.
ID: PM-18232

@daniellbw
Copy link

Hi there,

I am unable to reproduce this issue, it has been escalated for further investigation. If you have more information that can help us, please add it below.

Thanks!

@webalexeu
Copy link

I've the same issue on my side

Operating System
Windows

Operating System Version
10.0.26100.3194

Installation method
Winget

Build Version
2025.2.0

That's my .gitconfig

[user]
        signingkey = "[MASKED]"
[core]
	sshCommand = C:/Windows/System32/OpenSSH/ssh.exe
[gpg]
        format = ssh
[commit]
        gpgsign = true

Let me know if there is any logs or actions to perform to ease the troubleshooting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug desktop Desktop Application
Projects
None yet
Development

No branches or pull requests

4 participants