Skip to content

Instantly share code, notes, and snippets.

@gonzalo-trenco
Created August 13, 2018 08:21
Copy file from local to vagrant VM
#!/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