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;
Written by yanhaoyang
Related protips
1 Response
There is no vagrant-scp on my vagrantbox
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vagrant
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#