Method: Net::SSH::Authentication::Agent#remove_identity
- Defined in:
- lib/net/ssh/authentication/agent.rb
#remove_identity(key) ⇒ Object
Removes key from the agent.
175 176 177 178 |
# File 'lib/net/ssh/authentication/agent.rb', line 175 def remove_identity(key) type, = send_and_wait(SSH2_AGENT_REMOVE_IDENTITY, :string, key.to_blob) raise AgentError, "could not remove identity from agent" if type != SSH_AGENT_SUCCESS end |