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

Does not use keys from agent or from "identity_files" option #252

Open
Andeskjerf opened this issue Jan 8, 2025 · 0 comments
Open

Does not use keys from agent or from "identity_files" option #252

Andeskjerf opened this issue Jan 8, 2025 · 0 comments

Comments

@Andeskjerf
Copy link

To use a key, I have to explicitly set it in ~/.ssh/.config using IdentityFile. It would be nice if it got the key from the running SSH agent instead!

I tried using the identity_files option, but it still won't work. Not sure if something is broken with my installation or if it's bugged?

For reference,

./distant connect ssh://user@192.168.1.3 \
        --options 'backend=libssh,identity_files="~/path/to/key",identities_only=true'
Failed to connect to server

Caused by:
    Fatal: unhandled auth case; methods=PUBLIC_KEY, status={PUBLIC_KEY: Denied}

I shared a trace log from another issue I added just now, #251. The command was ran when my agent was running, so if it used the agent it should've gotten the key.

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

1 participant