Skip to content

Instantly share code, notes, and snippets.

@mykter
Forked from geedew/vagrant-scp
Last active Aug 29, 2015
Embed
What would you like to do?
#!/bin/sh
# Change these settings to match what you are wanting to do
FILE=/File/To/Copy
SERVER=localhost
PATH=/Where/To/Put/File
OPTIONS=`vagrant ssh-config | awk -v ORS=' ' '{print "-o " $1 "=" $2}'`
scp ${OPTIONS} $FILE vagrant@$SERVER:$PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment