Merge pull request #176 from dilpreet92/enable_ssh_over_proxy_command

Enable ssh over proxy command
This commit is contained in:
David Heinemeier Hansson
2023-04-10 14:41:45 +02:00
committed by GitHub
2 changed files with 9 additions and 0 deletions

View File

@@ -143,6 +143,8 @@ class Mrsk::Configuration
if raw_config.ssh.present? && raw_config.ssh["proxy"]
Net::SSH::Proxy::Jump.new \
raw_config.ssh["proxy"].include?("@") ? raw_config.ssh["proxy"] : "root@#{raw_config.ssh["proxy"]}"
elsif raw_config.ssh.present? && raw_config.ssh["proxy_command"]
Net::SSH::Proxy::Command.new(raw_config.ssh["proxy_command"])
end
end