Last active
July 22, 2017 15:16
-
-
Save geedew/11289350 to your computer and use it in GitHub Desktop.
Revisions
-
geedew renamed this gist
Apr 25, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
geedew created this gist
Apr 25, 2014 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ #!/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