Add ssh ProxyCommand functionality to rsync

This commit is contained in:
Brian.Clark 2014-04-26 13:52:39 -04:00
parent de6ad1d5d3
commit fb509ac8b7
1 changed files with 2 additions and 0 deletions

View File

@ -56,8 +56,10 @@ module VagrantPlugins
# Connection information
username = ssh_info[:username]
host = ssh_info[:host]
proxy_command = "-o ProxyCommand='#{ssh_info[:proxy_command]}' " if ssh_info[:proxy_command]
rsh = [
"ssh -p #{ssh_info[:port]} " +
proxy_command +
"-o StrictHostKeyChecking=no " +
"-o UserKnownHostsFile=/dev/null",
ssh_info[:private_key_path].map { |p| "-i '#{p}'" },