diff --git a/plugins/synced_folders/rsync/helper.rb b/plugins/synced_folders/rsync/helper.rb index ad66418cf..1a25f27a6 100644 --- a/plugins/synced_folders/rsync/helper.rb +++ b/plugins/synced_folders/rsync/helper.rb @@ -108,7 +108,7 @@ module VagrantPlugins # If specified, attach the private key paths. if ssh_info[:private_key_path] - ssh_info[:private_key_path].map { |p| "-i '#{p}'" } + rsh += ssh_info[:private_key_path].map { |p| "-i '#{p}'" } end # Exclude some files by default, and any that might be configured