Created
August 13, 2018 08:21
-
-
Save gonzalo-trenco/a8ceb0cd7cd763d1844879669910c40e to your computer and use it in GitHub Desktop.
Copy file from local to vagrant VM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
OPTIONS=`vagrant ssh-config | tail -n +2 | awk -v ORS=' ' '{print "-o " $1 "=" $2}'` | |
scp ${OPTIONS} /File/To/Copy vagrant@YourServer:/Where/To/Put/File |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment