summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/oxidized/input/ssh.rb4
-rw-r--r--oxidized.gemspec2
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