I'm trying to transfer something to another machine launching a once-only "daemon" through ssh with this command: rsync -avv -e "ssh -l user" ./orig/ machine::module/ where "module" is the name of a file in the home dir of user with the following: path = /path/to/home/transfer The ssh connection works without passphrase. This is the error: opening connection using: ssh -l user machine rsync --server --daemon . (8 args) rsync: did not see server greeting rsync error: error starting client-server protocol (code 5) at main.c(1635) [sender=3.1.1pre1] Am I doing something wrong?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 modules are defined in an rsyncd.conf file. That file needs to be in the home dir of the user. On 02/13/2014 08:38 PM, Carlos Carvalho wrote:> I'm trying to transfer something to another machine launching a > once-only "daemon" through ssh with this command: > > rsync -avv -e "ssh -l user" ./orig/ machine::module/ > > where "module" is the name of a file in the home dir of user with > the following: > > path = /path/to/home/transfer > > The ssh connection works without passphrase. This is the error: > > opening connection using: ssh -l user machine rsync --server > --daemon . (8 args) rsync: did not see server greeting rsync > error: error starting client-server protocol (code 5) at > main.c(1635) [sender=3.1.1pre1] > > Am I doing something wrong? >- -- ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~ Kevin Korb Phone: (407) 252-6853 Systems Administrator Internet: FutureQuest, Inc. Kevin at FutureQuest.net (work) Orlando, Florida kmk at sanitarium.net (personal) Web page: http://www.sanitarium.net/ PGP public key available on web site. ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~ -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlL9g7QACgkQVKC1jlbQAQeeLwCePjYkxSwkpgcVBHXo2FtwxEvV P14AoO0MpBlDt5Sv9HBeWMdjd7kOucDk =NaaI -----END PGP SIGNATURE-----
On 13.02.2014 23:38, Carlos Carvalho wrote:> I'm trying to transfer something to another machine launching a > once-only "daemon" through ssh with this command: > > rsync -avv -e "ssh -l user" ./orig/ machine::module/ > > where "module" is the name of a file in the home dir of user with the > following: > > path = /path/to/home/transfer > > The ssh connection works without passphrase. This is the error: > > opening connection using: ssh -l user machine rsync --server --daemon . (8 args) > rsync: did not see server greeting > rsync error: error starting client-server protocol (code 5) at main.c(1635) [sender=3.1.1pre1] > > Am I doing something wrong?You could say that. You mixed the options from "remote shell" with "rsync daemon". Rsync is used either as 'rsync over SSH'(/remote shell) OR daemon-mode. - synopsis from man-page - Access via remote shell: Pull: rsync [OPTION...] [USER@]HOST:SRC... [DEST] Push: rsync [OPTION...] SRC... [USER@]HOST:DEST Access via rsync daemon: Pull: rsync [OPTION...] [USER@]HOST::SRC... [DEST] rsync [OPTION...] rsync://[USER@]HOST[:PORT]/SRC... [DEST] Push: rsync [OPTION...] SRC... [USER@]HOST::DEST rsync [OPTION...] SRC... rsync://[USER@]HOST[:PORT]/DEST - snip - In the later case the machine::module-syntax is used (client side) and target(or server)-rsync must run in daemon-mode on the target machine. For "rsync over ssh" no conf-file is used at all and all parameters have to be provied on the commandline (see --conf in man-page) -- Matthias