diff options
author | Saku Ytti <saku@ytti.fi> | 2015-04-20 15:34:05 +0300 |
---|---|---|
committer | Saku Ytti <saku@ytti.fi> | 2015-04-20 15:34:05 +0300 |
commit | b30522672bc67d8a391bede1307679dae3c9c6e1 (patch) | |
tree | 70349a1489c2c601c9ebea3c0022cb312aa35d71 | |
parent | 5adeeff5a853a02f452d6d4e44828c08669e395a (diff) |
don't use keyboard interactive passwords
(new behavior in net-ssh 2.9.3)
-rw-r--r-- | lib/oxidized/input/ssh.rb | 4 | ||||
-rw-r--r-- | 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 |