Skip to content

Failure to connect to SSH agent should not be fatal #3866

@Keno

Description

@Keno

This issue is somewhat connected to #3761, but not entirely.
When the callback requests ssh agent usage, that connection can fail for a
variety of reasons (SSH_AUTH_SOCKET not defined, no permissions to the socket, weird ssh-agent, etc.). Currently, all of these are fatal and terminate the authentication process.
Instead, it would be great if the authentication callback could be called again, to provide
an alternative method of authentication (e.g. prompting the user for privkey/password).
I hacked around this locally, by just causing EAUTH to be returned when libssh2_agent_connect
fails. This works fine, but I'm not sure it's the best general solution, since some people may be
interested in why the SSH agent connection failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions