summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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 63d1067..7ffdd36 100644
--- a/lib/oxidized/input/ssh.rb
+++ b/lib/oxidized/input/ssh.rb
@@ -34,8 +34,8 @@ module Oxidized
:number_of_password_prompts => 0,
:proxy => proxy
}
- ssh_opts[:encryption] = vars(:ssh_encryption) if vars(:ssh_encryption)
- ssh_opts[:kex] = vars(:ssh_kex) if vars(:ssh_kex)
+ ssh_opts[:kex] = vars(:ssh_kex).split(/,\s*/) if vars(:ssh_kex)
+ ssh_opts[:encryption] = vars(:ssh_encryption).split(/,\s*/) if vars(:ssh_encryption)
@ssh = Net::SSH.start(@node.ip, @node.auth[:username], ssh_opts)
unless @exec