summaryrefslogtreecommitdiff
path: root/lib/oxidized/input
diff options
context:
space:
mode:
authorNeil Lathwood <neil@lathwood.co.uk>2018-02-05 21:55:31 +0000
committerNeil Lathwood <neil@lathwood.co.uk>2018-02-05 21:55:31 +0000
commit7c108b6b7a3277aac44455b93a587d1d01a58041 (patch)
tree1614ebd1e77e860a1f942a38f86b4a77feb7875d /lib/oxidized/input
parent2726fff67ded963e24776e60f1e8976ae2bb037b (diff)
Added support for setting ssh auth methods
Diffstat (limited to 'lib/oxidized/input')
-rw-r--r--lib/oxidized/input/ssh.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/oxidized/input/ssh.rb b/lib/oxidized/input/ssh.rb
index 27e81e0..8df18f5 100644
--- a/lib/oxidized/input/ssh.rb
+++ b/lib/oxidized/input/ssh.rb
@@ -29,10 +29,13 @@ module Oxidized
:port => port.to_i,
:password => @node.auth[:password], :timeout => Oxidized.config.timeout,
:paranoid => secure,
- :auth_methods => %w(none publickey password keyboard-interactive),
:number_of_password_prompts => 0,
}
+ auth_methods = vars(:auth_methods) || %w(none publickey password)
+ ssh_opts[:auth_methods] = auth_methods
+ Oxidized.logger.info "AUTH METHODS::#{auth_methods}"
+
if proxy_host = vars(:ssh_proxy)
proxy_command = "ssh "
proxy_command += "-o StrictHostKeyChecking=no " unless secure