From b30522672bc67d8a391bede1307679dae3c9c6e1 Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Mon, 20 Apr 2015 15:34:05 +0300 Subject: don't use keyboard interactive passwords (new behavior in net-ssh 2.9.3) --- lib/oxidized/input/ssh.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.1