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

Fix permissions to use SSH Agent with Flatpak #117

Closed
droidmonkey opened this issue Sep 24, 2023 · 3 comments · Fixed by #121
Closed

Fix permissions to use SSH Agent with Flatpak #117

droidmonkey opened this issue Sep 24, 2023 · 3 comments · Fixed by #121
Assignees
Labels

Comments

@droidmonkey
Copy link
Collaborator

For those landing here and using the official flatpak, the current (2023.09+) flatpak enables the ssh-auth socket by default, however it is missing the environment variable setting. To fix this, using "Flatseal", add an environment variable to the keepassxc flatpak configuration,

SSH_AUTH_SOCK=$SSH_AUTH_SOCK 

and relaunch keepassxc.

Originally posted by @arigit in keepassxreboot/keepassxc#8460 (comment)

@droidmonkey droidmonkey self-assigned this Sep 24, 2023
@jgonyea
Copy link

jgonyea commented Oct 3, 2023

This doesn't seem to be working for me. I still get the "No agent running, cannot list identities."

echo $SSH_AUTH_SOCK                                                                                                        
/run/user/1000/ssh-agent.socket

and

$ ps aux | grep ssh                                                                                                         
deck        6010  0.0  0.0   5840  3896 ?        Ss   19:26   0:00 /usr/bin/ssh-agent -D -a /run/user/1000/ssh-agent.socket

Followup edit:
I had a misconfiguration in my ~/.config/environment.d/ssh_auth_socket.conf file. This is working for me now.

@cgredig
Copy link

cgredig commented Oct 15, 2023

This doesn't seem to be working for me. I still get the "No agent running, cannot list identities."

echo $SSH_AUTH_SOCK                                                                                                        
/run/user/1000/ssh-agent.socket

and

$ ps aux | grep ssh                                                                                                         
deck        6010  0.0  0.0   5840  3896 ?        Ss   19:26   0:00 /usr/bin/ssh-agent -D -a /run/user/1000/ssh-agent.socket

Followup edit: I had a misconfiguration in my ~/.config/environment.d/ssh_auth_socket.conf file. This is working for me now.

Could you post how your ssh_auth_socket.conf looked before and after? I have the same issue, the env variable contains the correct path and it is recognized by KeepassXC but it still complains that the agent is not running which is not true.

@jgonyea
Copy link

jgonyea commented Nov 27, 2023

image

and my ~/.config/environment.d/ssh_auth_socket.conf just has:
SSH_AUTH_SOCK="${XDG_RUNTIME_DIR}/ssh-agent.socket"

droidmonkey added a commit to droidmonkey/KeePassXC-Flathub that referenced this issue Mar 11, 2024
* Bump Botan to 3.3.0
* Bump Asciidoctor to 2.0.22
* Fix flathub#117
droidmonkey added a commit to droidmonkey/KeePassXC-Flathub that referenced this issue Mar 11, 2024
* Bump Botan to 3.3.0
* Bump Asciidoctor to 2.0.22
* Fix flathub#117
droidmonkey added a commit that referenced this issue Mar 11, 2024
* Bump Botan to 3.3.0
* Bump Asciidoctor to 2.0.22
* Fix #117
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants