summaryrefslogtreecommitdiff
path: root/lib/oxidized/input/ssh.rb
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2016-02-25 00:20:40 +0200
committerytti <saku@ytti.fi>2016-02-25 00:20:40 +0200
commit7ecf4e2b7024ab9597a4ec7d2c5723a3424b65c5 (patch)
tree1f015530dbb7977eccda29fcc964565d0212f723 /lib/oxidized/input/ssh.rb
parent1d6be9c011a9195626f59d3d62ac2febe9dd3149 (diff)
parent1a06112f5514a93a45c7422a2b9cc7c31f6147e4 (diff)
Merge pull request #336 from roedie/add-sshtunnel
Add support for ssh tunnel
Diffstat (limited to 'lib/oxidized/input/ssh.rb')
-rw-r--r--lib/oxidized/input/ssh.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/oxidized/input/ssh.rb b/lib/oxidized/input/ssh.rb
index 7ffdd36..ec1a756 100644
--- a/lib/oxidized/input/ssh.rb
+++ b/lib/oxidized/input/ssh.rb
@@ -23,8 +23,8 @@ module Oxidized
secure = Oxidized.config.input.ssh.secure
@log = File.open(Oxidized::Config::Log + "-#{@node.ip}-ssh", 'w') if Oxidized.config.input.debug?
port = vars(:ssh_port) || 22
- if proxy_host = vars(:proxy)
- proxy = Net::SSH::Proxy::Command.new("ssh #{proxy_host} nc %h %p")
+ if proxy_host = vars(:ssh_proxy)
+ proxy = Net::SSH::Proxy::Command.new("ssh #{proxy_host} -W %h:%p")
end
ssh_opts = {
:port => port.to_i,