class Net::SSH::Authentication::Agent

def lock(password)

lock the ssh agent with password
def lock(password)
  type, = send_and_wait(SSH2_AGENT_LOCK, :string, password)
  raise AgentError, "could not lock agent" if type != SSH_AGENT_SUCCESS
end