Skip to content

Instantly share code, notes, and snippets.

@petems
Created July 24, 2014 17:49
Show Gist options
  • Save petems/b8e4060bf3f0bc84b1f1 to your computer and use it in GitHub Desktop.
Save petems/b8e4060bf3f0bc84b1f1 to your computer and use it in GitHub Desktop.
Rsync issues with Vagrant and CentOS
There was an error when attempting to rsync a synced folder.
Please inspect the error message below for more info.
Host path: /Users/peterso/Projects/foo-project/
Guest path: /vagrant
There was an error when attempting to rsync a synced folder.
Please inspect the error message below for more info.
Host path: /Users/peterso/Projects/foo-project/
Guest path: /vagrant
Command: rsync --verbose --archive --delete -z --copy-links --no-owner --no-group --rsync-path sudo rsync -e ssh -p 22 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i '/Users/peterso/Projects/foo-project/keys/bootstrap' --exclude .vagrant/ /Users/peterso/Projects/foo-project/ root@[REDACTED]:/vagrant
Error: Warning: Permanently added '[REDACTED]' (RSA) to the list of known hosts.
sudo: sorry, you must have a tty to run sudo
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at /SourceCache/rsync/rsync-42/rsync/io.c(452) [sender=2.6.9]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment