-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Since you are using sudo on the remote end have you configured it to not require a password for that user to run rsync? I suspect that your use of the double -t on ssh that it isn't. Rsync over ssh is not going to be compatible with a sudo password prompt.
On 07/22/12 21:47, Stayvoid wrote: > Hi, > > I'm trying to copy some files from a remote server. (That server > uses passphrase to auth users.) Rsync should be able to copy files > with root privileges. > > Here is my attempt: > > sudo rsync -avP --exclude 'proc' --exclude 'dev' --exclude 'tmp' > --exclude 'sys' --exclude 'mnt' --rsync-path='sudo rsync' -e "ssh > -t -t -i /home/USER/.ssh/key" USER@SERVER:/ /mnt/backup/ > > Response: > > protocol version mismatch -- is your shell clean? (see the rsync > man page for an explanation) > > The following file is empty: > > ssh remotesystem /bin/true > test.dat [1] > > Any ideas? Am I using the correct syntax? > > Thanks > > [1] http://rsync.samba.org/FAQ.html - -- ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~ Kevin Korb Phone: (407) 252-6853 Systems Administrator Internet: FutureQuest, Inc. ke...@futurequest.net (work) Orlando, Florida k...@sanitarium.net (personal) Web page: http://www.sanitarium.net/ PGP public key available on web site. ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~ -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlAMrhYACgkQVKC1jlbQAQe9lgCfV54yb8E+E60GL8WvP3rrzQ0x rjAAnA8Xge7QM3H8PK6f3vXn2gJX1qGU =OBGr -----END PGP SIGNATURE----- -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html