Merge pull request #3553 from bclarkindy/rsync_ssh_proxy
synced_folders/rsync: Add SSH proxy_command functionality to rsync
This commit is contained in:
commit
617a85be06
|
@ -56,8 +56,10 @@ module VagrantPlugins
|
||||||
# Connection information
|
# Connection information
|
||||||
username = ssh_info[:username]
|
username = ssh_info[:username]
|
||||||
host = ssh_info[:host]
|
host = ssh_info[:host]
|
||||||
|
proxy_command = "-o ProxyCommand='#{ssh_info[:proxy_command]}' " if ssh_info[:proxy_command]
|
||||||
rsh = [
|
rsh = [
|
||||||
"ssh -p #{ssh_info[:port]} " +
|
"ssh -p #{ssh_info[:port]} " +
|
||||||
|
proxy_command +
|
||||||
"-o StrictHostKeyChecking=no " +
|
"-o StrictHostKeyChecking=no " +
|
||||||
"-o UserKnownHostsFile=/dev/null",
|
"-o UserKnownHostsFile=/dev/null",
|
||||||
ssh_info[:private_key_path].map { |p| "-i '#{p}'" },
|
ssh_info[:private_key_path].map { |p| "-i '#{p}'" },
|
||||||
|
|
Loading…
Reference in New Issue