Skip to content

Instantly share code, notes, and snippets.

@geedew
Last active July 22, 2017 15:16
Show Gist options
  • Select an option

  • Save geedew/11289350 to your computer and use it in GitHub Desktop.

Select an option

Save geedew/11289350 to your computer and use it in GitHub Desktop.

Revisions

  1. geedew renamed this gist Apr 25, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. geedew created this gist Apr 25, 2014.
    10 changes: 10 additions & 0 deletions gistfile1.txt
    Original 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