通过 SCP 将文件复制到 Vagrant VM。
Copy files to a Vagrant guest via SCP.
You need to install the plugin, like so
vagrant plugin install vagrant-scpIf you have just a single Vagrant guest, you can copy files over like this:
vagrant scp If you have multiple VMs, you can specify it.
vagrant scp [vm_name]:Copying files out of the guest works in the same fashion
vagrant scp [vm_name]: If source is a directory it will be copied recursively.
If you have just one guest, you can copy files to it like this:
vagrant scp file_on_host.txt :file_on_vm.txtAnd from the guest like this:
vagrant scp :file_on_vm.txt file_on_host.txtWe require Vagrant v1.7 or newer. If you are running older version (check with vagrant --version), install recent version directly from vendor site.
暂无开放 Issues,或尚未同步最近议题。