class Net::SSH::Authentication::Agent
def send_and_wait(type, *args)
Send the given packet and return the subsequent reply from the agent.
def send_and_wait(type, *args) send_packet(type, *args) read_packet rescue Errno::ECONNRESET, Errno::EPIPE => e # Linux reports an agent that closes with our request unread as a reset, not EOF. raise AgentClosedConnection, "agent closed the connection (#{e.class})" end