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 +++- oxidized.gemspec | 2 +- 2 files changed, 4 insertions(+), 2 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 diff --git a/oxidized.gemspec b/oxidized.gemspec index 49343e6..c9944f0 100644 --- a/oxidized.gemspec +++ b/oxidized.gemspec @@ -17,5 +17,5 @@ Gem::Specification.new do |s| s.add_runtime_dependency 'asetus', '~> 0.1' s.add_runtime_dependency 'slop', '~> 3.5' s.add_runtime_dependency 'net-ssh', '~> 2.8' - s.add_runtime_dependency 'rugged', '~> 0.21.4' + s.add_runtime_dependency 'rugged', '~> 0.21', '>= 0.21.4' end -- cgit v1.2.1