class Net::SSH::Authentication::Agent

def agent_failed(type)

the agent, and +false+ otherwise.
Returns +true+ if the parameter indicates a "failure" response from
def agent_failed(type)
  type == SSH_AGENT_FAILURE ||
    type == SSH2_AGENT_FAILURE ||
    type == SSH_COM_AGENT2_FAILURE
end