From fb509ac8b70956c28d33578ad08ff8a14c54a449 Mon Sep 17 00:00:00 2001 From: "Brian.Clark" Date: Sat, 26 Apr 2014 13:52:39 -0400 Subject: [PATCH] Add ssh ProxyCommand functionality to rsync --- plugins/synced_folders/rsync/helper.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/synced_folders/rsync/helper.rb b/plugins/synced_folders/rsync/helper.rb index c5c9e7da7..ae47f8b97 100644 --- a/plugins/synced_folders/rsync/helper.rb +++ b/plugins/synced_folders/rsync/helper.rb @@ -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}'" },