-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Description
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
Labels
No labels