summaryrefslogtreecommitdiff
path: root/lib/oxidized
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2015-04-20 15:34:05 +0300
committerSaku Ytti <saku@ytti.fi>2015-04-20 15:34:05 +0300
commitb30522672bc67d8a391bede1307679dae3c9c6e1 (patch)
tree70349a1489c2c601c9ebea3c0022cb312aa35d71 /lib/oxidized
parent5adeeff5a853a02f452d6d4e44828c08669e395a (diff)
don't use keyboard interactive passwords
(new behavior in net-ssh 2.9.3)
Diffstat (limited to 'lib/oxidized')
-rw-r--r--lib/oxidized/input/ssh.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/oxidized/input/ssh.rb b/lib/oxidized/input/ssh.rb
index ec33d37..46f90f9 100644
--- a/lib/oxidized/input/ssh.rb
+++ b/lib/oxidized/input/ssh.rb
@@ -23,7 +23,9 @@ module Oxidized
@log = File.open(CFG.input.debug?.to_s + '-ssh', 'w') if CFG.input.debug?
@ssh = Net::SSH.start @node.ip, @node.auth[:username],
:password => @node.auth[:password], :timeout => CFG.timeout,
- :paranoid => secure
+ :paranoid => secure,
+ :auth_methods => %w(publickey password),
+ :number_of_password_prompts => 0
unless @exec
shell_open @ssh
begin