mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Merge pull request #487 from devopsjedi/master
Update forward_ports.rb to fix spaces in private key path
This commit is contained in:
commit
1ad103181e
@ -98,7 +98,7 @@ module VagrantPlugins
|
||||
PasswordAuthentication=no
|
||||
ForwardX11=#{ssh_info[:forward_x11] ? 'yes' : 'no'}
|
||||
) + ssh_info[:private_key_path].map do |pk|
|
||||
"IdentityFile=#{pk}"
|
||||
"IdentityFile='\"#{pk}\"'"
|
||||
end).map { |s| s.prepend('-o ') }.join(' ')
|
||||
|
||||
options += " -o ProxyCommand=\"#{ssh_info[:proxy_command]}\"" if machine.provider_config.connect_via_ssh
|
||||
|
Loading…
Reference in New Issue
Block a user