summaryrefslogtreecommitdiff
path: root/lib/oxidized/input
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2018-04-27 14:35:34 +0300
committerGitHub <noreply@github.com>2018-04-27 14:35:34 +0300
commiteedaeff5b159a3e2dc0f2020000d2b39ccfbed2f (patch)
tree655fe8f951b06aaa94a9c9b111a6f0cbcc475915 /lib/oxidized/input
parent1311573a1adff6edf2c0b3cfdb05ca83d6c46e73 (diff)
parent90e1c91ae52ecbcc5b733f166e110faf9b698687 (diff)
Merge pull request #1175 from laf/ssh-auth-methods
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 dc1eb27..6e86d13 100644
--- a/lib/oxidized/input/ssh.rb
+++ b/lib/oxidized/input/ssh.rb
@@ -29,11 +29,14 @@ module Oxidized
port: port.to_i,
paranoid: secure,
keepalive: true,
- auth_methods: %w(none publickey password keyboard-interactive),
password: @node.auth[:password], :timeout => Oxidized.config.timeout,
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