Method: Net::SSH::Authentication::KeyManager#use_agent=
- Defined in:
- lib/net/ssh/authentication/key_manager.rb
#use_agent=(use_agent) ⇒ Object
Toggles whether the ssh-agent will be used or not. If true, an attempt will be made to use the ssh-agent. If false, any existing connection to an agent is closed and the agent will not be used.
207 208 209 210 |
# File 'lib/net/ssh/authentication/key_manager.rb', line 207 def use_agent=(use_agent) finish if !use_agent @use_agent = use_agent end |