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

KeepassXC url format missing // #10

Open
select opened this issue Mar 25, 2021 · 1 comment
Open

KeepassXC url format missing // #10

select opened this issue Mar 25, 2021 · 1 comment

Comments

@select
Copy link

select commented Mar 25, 2021

When I tried to make the plugin work I never found an entry, so I debugged the code and saw that under KeepassXC you are not looking for ssh://[host] but for ssh:[host]. This might be a typo but changing the following worked for me

def get_password(self, host_name):
        try:
            logins = self.connection.get_logins(
                self.identity,
                url='ssh://{}'.format(host_name)

On a side note, entering the URL values with just ssh:[host] is marked red in KeepassXC, indicating that the URL is not correct

@peterbabic
Copy link

What is more interesting is that other part of the code has it like that with ssh://

raise KeepassHTTPError('Keepass is closed!')
try:
auth = self.k.get_credentials('ssh://{}'.format(host_name))
except Exception as e:
raise KeepassHTTPError(

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

No branches or pull requests

2 participants