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

Dbeaver CE Ubuntu snap can't read SSH key in ~/.ssh #10098

Closed
kaincenteno opened this issue Oct 19, 2020 · 5 comments
Closed

Dbeaver CE Ubuntu snap can't read SSH key in ~/.ssh #10098

kaincenteno opened this issue Oct 19, 2020 · 5 comments

Comments

@kaincenteno
Copy link

System information:

  • Operating system (distribution) and version
    Ubuntu 20.04
  • DBeaver version
    7.2.2.202010041557
  • Additional extensions

Connection specification:

  • Database name and version
  • Driver name
  • Do you use tunnels or proxies (SSH, SOCKS, etc)?
    SSH

Describe the problem you're observing:

When trying to create a connecting, if you try using a private key that lives in ~/.ssh it won't allow you to

Steps to reproduce, if exist:

Include any warning/errors/backtraces from the logs

@uslss
Copy link
Member

uslss commented Oct 19, 2020

thanks for the bug report

@benzkji
Copy link

benzkji commented Nov 20, 2020

this is probably because of the security restrictions that are enforced, when using snap? agent does not work either, here.

@tati-kru tati-kru modified the milestones: 7.3.0, 7.3.1 Nov 30, 2020
@tati-kru tati-kru removed this from the 7.3.1 milestone Dec 21, 2020
@AlainBenbassat
Copy link

The solution is to give DBeaver permission to access the ssh folder.

  • Open the "Ubuntu Software" app
  • click on the tab "Installed"
  • click on "dbeaver-ce"

db1

  • then click on the "Permissions button"

db2

  • enable "ssh-keys: allows reading ssh user configuration and keys"

db3

@ndlarsen
Copy link

ndlarsen commented Mar 18, 2021

Consider editing the snap so it's installable with the --classic argument. This also enables retaining configurations then uninstalling the snap.

@riednyko
Copy link
Member

riednyko commented Apr 6, 2021

For reading private keys in ~/.ssh you need to manually connect the plugin
sudo snap connect dbeaver-ce:ssh-keys for access to private keys
and
sudo snap connect dbeaver-ce:ssh-public-keys for access to public keys.

Or you can use the solution written above by @AlainBenbassat

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

No branches or pull requests

7 participants