Last Updated: February 25, 2016
·
1.161K
· yanhaoyang

A script to scp file to a Vagrant box on OS X

#!/usr/bin/env bash

if [ -n "$1" ];
then

  ssh_config=$(mktemp -t ssh_config)
  vagrant ssh-config > "$ssh_config"
  scp -F "$ssh_config" $@

else

  echo "Usage: vagrant-scp [options] <file name> default:[the/path]"

fi;

1 Response
Add your response

There is no vagrant-scp on my vagrantbox

over 1 year ago ·