Skip to content

Commit

Permalink
Update ssh.rb (#2651)
Browse files Browse the repository at this point in the history
Fix for iosxr device that can't allocate pty for session because of net-ssh which use by default forwarding agent.
  • Loading branch information
Bordik765 authored Nov 29, 2022
1 parent 6f2535c commit b7fdc68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/oxidized/input/ssh.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ def make_ssh_opts
append_all_supported_algorithms: true,
password: @node.auth[:password],
timeout: Oxidized.config.timeout,
port: (vars(:ssh_port) || 22).to_i
port: (vars(:ssh_port) || 22).to_i,
forward_agent: false
}

auth_methods = vars(:auth_methods) || %w[none publickey password]
Expand Down

0 comments on commit b7fdc68

Please sign in to comment.