Please ignore if I am missing any basic.
How far it is true that, if we use SSH port for rsync and keep it open, it
will allow non-authorized user to connect (if he knows rsync_password) ?
Alternatively, If I keep rsync port open and using '-e ssh' option, even
unauthorized user can enter into the system throug rsync port.
-----Original Message-----
From: Bennett Todd [mailto:[EMAIL PROTECTED]]
Sent: Saturday, September 09, 2000 12:02 AM
To: root
Cc: [EMAIL PROTECTED]
Subject: Re: Help me...
2000-09-08-20:22:23 root:
> I am very new to rsync and want to use it for mirroring purpose
> using ssh.
My favourite!
> Both the systems (linux) do have rsync (command) and ssh already
> installed but couldn't get rsync run properly. Ssh is
> functioning good.
When you say ssh is functioning good, do you have it set up with
public keys so no password is required? That's how I always use it.
> I tried running the following command but in vain.
>
> % rsync -avz remote:home/test/abc/ /home/test/def
Unless you've set the RSYNC_RSH environment variable to "ssh", that
command is incomplete; you might want to try
mkdir /home/test/def
rsync -avze ssh remote:/home/test/abc/. /home/test/def/
BTW, you left off the leading slash on the path in the remote end.
Oh, one other tweak, I have gotten into the habit of rsyncing a
directory named "." from the src end into a directory on the dst
end, named with a trailing slash; this saved me from repetition of a
mistake I made a couple of times that ended up eradicating huge
tracts of files (misusing --delete, not testing with -n before
invoking).
-Bennett