Skip to content

Instantly share code, notes, and snippets.

@ehernandez-xk
Forked from geedew/vagrant-scp
Created April 12, 2017 13:56
Show Gist options
  • Select an option

  • Save ehernandez-xk/03a957c820f6f0eab477b048ccd2d8ef to your computer and use it in GitHub Desktop.

Select an option

Save ehernandez-xk/03a957c820f6f0eab477b048ccd2d8ef to your computer and use it in GitHub Desktop.

Revisions

  1. @geedew geedew renamed this gist Apr 25, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. @geedew 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