Skip to content
New issue

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

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

Already on GitHub? # to your account

"Agent connection failed" message on start and "Add to agent" #4046

Closed
mackushev opened this issue Dec 20, 2019 · 4 comments
Closed

"Agent connection failed" message on start and "Add to agent" #4046

mackushev opened this issue Dec 20, 2019 · 4 comments

Comments

@mackushev
Copy link

Expected Behavior

I'm trying to add key from KeepassXC
Key added and checkbox 'Add key to agent then database is unlocked ' is set
I expect than key became visible in ssh-agent -L

Current Behavior

Then keepass starts it shows "Agent connection failed"
Button "Add to agent" shows the same message

Possible Solution

Steps to Reproduce

  1. Add key to keepass
  2. Set 'Add key to agent then database is unlocked ' on
  3. Exit keepass and start it again

Context

ssh-agent don't crash on "add to agent" or "remove from agent" buttons like at #1746

SSH_AUTH_SOCK=/run/user/1001/keyring/ssh

Debug Info

KeePassXC - Version 2.5.1
Revision: 0fd8836
Distribution: Snap

Qt 5.9.5
Debugging mode is disabled.

Operating system: Ubuntu Core 18
CPU architecture: x86_64
Kernel: linux 4.15.0-1065-oem

Enabled extensions:

  • Auto-Type
  • Browser Integration
  • SSH Agent
  • KeeShare (signed and unsigned sharing)
  • YubiKey
  • Secret Service Integration

Cryptographic libraries:
libgcrypt 1.8.1
Libraries:

  • LIBS
@mackushev mackushev added the bug label Dec 20, 2019
@droidmonkey
Copy link
Member

You cannot use ssh agent with the snap distribution due to sandboxing.

@erikjoling
Copy link

I also ran into this problem. And I solved it by installing the Ubuntu package, not the snap distribution.

You can download the default ubuntu package, but it's outdated (2.4.3, 2019). To install a more recent version follow the instructions on this blog-article: https://keepassxc.org/blog/2017-10-25-ubuntu-ppa/

@theHilikus
Copy link

@droidmonkey
Just for the record, IIUC, there is a snap-approved solution to this: make the snap run its own ssh-agent instead of connecting to the global one
See here for a discussion

Now, whether it is worth implementing that solution in KPXC or not, I have no idea, but there seems to be a way a least

@droidmonkey
Copy link
Member

That is not a solution. No other app can benefit from using an agent within your snap environment.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

4 participants