getting rsync to work

Paul Slootman paul at
Thu Feb 10 17:13:13 GMT 2005

On Thu 10 Feb 2005, Gil Naveh wrote:
> I am trying to do a very simple thing, just transfer a file from machine A
> to machine B using rsync with ssh.
> This is what I'm typing:
>  # rsync -a -e ssh serverB:/tmp/rsync/test1 n serverA:/tmp/rsync/
>  #  password: XXXXX
> This is what I get:
> # bash: rsync: command not found
> # rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
> # rsync error: error in rsync protocol data stream (code 12) at io.c(359)
> Basically it seems to go wrong after logging into the remote machine when it
> says "bash: rsync: command not found".
> rsync is definitely installed on both machines which are Solaris9 and is in
> the user's
> environment path. So I don't understand why it says "rsync: command not
> found"...?

.profile etc. is typically not read when executing a command via ssh.
That's why the  --rsync-path=PATH  option was invented.
Add that (with the correct path to the rsync binary on the remote!)
and things should start working.

PS: what's the 'n' doing between /test1 and serverA: in your command?
I hope it's a typo...

Paul Slootman

More information about the rsync mailing list