clj-libssh2.agent

Functions for interacting with an SSH agent. The agent is expected to be
available on the UNIX domain socket referred to by the SSH_AUTH_SOCK
environment variable.

authenticate

(authenticate session username)
Attempt to authenticate a session using the agent.

Arguments:

session  A clj-libssh2.session.Session object which refers to a session
         which has not already been authenticated.
username The username for the user who is trying to authenticate.

Return:

True on success. An exception will be thrown if the user could not be
authenticated.