diff options
author | Matthias Cramer <matthias.cramer@iway.ch> | 2017-03-24 00:09:39 +0100 |
---|---|---|
committer | Matthias Cramer <matthias.cramer@iway.ch> | 2017-03-24 00:09:39 +0100 |
commit | 0912287387c60533d42776dbae7127cdcee026c6 (patch) | |
tree | 72514ea1c4dae7ba9add5d06776ba06e7ef03833 /lib/oxidized/input | |
parent | 258ccbc0456798be8fe0a45952a48fba60392fa8 (diff) | |
parent | 4a67e27742c0ab8ed6cd8421d34c01c0de588705 (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'lib/oxidized/input')
-rw-r--r-- | lib/oxidized/input/ssh.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/oxidized/input/ssh.rb b/lib/oxidized/input/ssh.rb index 9a5c508..858d5cd 100644 --- a/lib/oxidized/input/ssh.rb +++ b/lib/oxidized/input/ssh.rb @@ -25,7 +25,10 @@ module Oxidized @log = File.open(Oxidized::Config::Log + "/#{@node.ip}-ssh", 'w') if Oxidized.config.input.debug? port = vars(:ssh_port) || 22 if proxy_host = vars(:ssh_proxy) - proxy = Net::SSH::Proxy::Command.new("ssh #{proxy_host} -W %h:%p") + proxy_command = "ssh " + proxy_command += "-o StrictHostKeyChecking=no " unless secure + proxy_command += "#{proxy_host} -W %h:%p" + proxy = Net::SSH::Proxy::Command.new(proxy_command) end ssh_opts = { :port => port.to_i, |