Fixed port forwarding when using remote libvirt (use a ProxyCommand)

This commit is contained in:
Benjamin Vanheuverzwijn 2014-07-04 14:21:14 -04:00
parent 53612a439e
commit 31f18b6fe6

View File

@ -97,6 +97,8 @@ module VagrantPlugins
"IdentityFile=#{pk}"
end).map { |s| s.prepend('-o ') }.join(' ')
options += " -o ProxyCommand=\"#{ssh_info[:proxy_command]}\"" if machine.provider_config.connect_via_ssh
# TODO: instead of this, try and lock and get the stdin from spawn...
ssh_cmd = ''
if host_port <= 1024