Vagrant

Copy local file to VM

tar cz --directory . <filename> | vagrant ssh <hostname> -- 'tar xzf -'

See Vagrant SCP.