[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] [550] Rsync help needed



Well don't I feel silly.  Andreas, your feedback launched me toward the
right answer to my problem -- thank you!

The RaQ 550 is set up to not allow root login through ssh.  That is why my
rsync sessions were rejected by the 550.  I got rsync to work two different
ways:

[1] Login as admin.  I used:

     rsync -auvz --delete --rsh=ssh admin@<my IP
address>:/home/cmu/www.scc.wa.gov/ /home/cmu/www.scc.wa.gov

[2] Edit /etc/ssh/sshd_config and change "PermitRootLogin no" to
"PermitRootLogin yes"

I don't recommend solution 2.

Tom


-----Original Message-----
From: Andreas Fuchs [mailto:fox@xxxxxxxx] 
Sent: Wednesday, February 25, 2004 11:13 PM
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: AW: [cobalt-users] [550] Rsync help needed


Hi

If you wan't to connect to your rsync DAEMON you have to use a command like
this:

       o      for  copying  from  a  remote rsync server to the local
machine. This is invoked
              when the source path contains a :: separator or a rsync://
URL.

              rsync [OPTION]... [USER@]HOST::SRC [DEST]
              rsync [OPTION]... rsync://[USER@]HOST[:PORT]/SRC [DEST]

The way you do it, you do NOT use the DAEMON

       o      for copying from the local machine to a remote machine using a
remote shell pro­
              gram as the transport (such as rsh or ssh). This is invoked
when the destination
              path contains a single : separator.

In this case you have to make shure, that the user who starts the rsync
command has the right to make an ssh connection. Optionally you can add the
user for the remote system:

	       rsync [OPTION]... [USER@]HOST:SRC DEST

So either add a second collon to your rsync command AND make shure your
/etc/rsyncd.conf is properly configured OR (and in my opninion eaysier)
forget about rsync in deamon mode and check if you can really make an ssh
connection with the user who starts the rsync. If it still fails check
/var/log/messages why it fails and/or add -v to your rsync command.

Btw: there is no need to start rsync via inetd if you have it started
already from commandline or via init.d in daemon mode.


-----Ursprüngliche Nachricht-----
Von: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]Im Auftrag von Salzer, Tom
Gesendet: Dienstag, 24. Februar 2004 21:28
An: 'cobalt-users@xxxxxxxxxxxxxxx'
Betreff: RE: [cobalt-users] [550] Rsync help needed


Thanks, I will try that.  When I've run rsync --daemon as root, I can telnet
to port 873 and it shows @RSYNC.  It also shows up when I run ps -ax |grep
rsync so I know it's running.  But the system consistently refuses the
connection or terminates the connection when attempting to rsync from a
client.  I'm using the following syntax to go from a 550 on our LAN to the
public 550:

	rsync -auvz --delete --rsh=ssh <IP
ADDRESS>:/home/cmu/www.my.domain.com/ /home/cmu/www.my.domain.com

This has worked perfectly on our pair of XTRs.  I've kept the configuration
of rsync exactly the same but it isn't working :(

Tom

-----Original Message-----
From: Dmitry Alexeyev [mailto:dmi_a@xxxxxxxxxx]
Sent: Tuesday, February 24, 2004 1:34 AM
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: Re: [cobalt-users] [550] Rsync help needed


Hi!

Make sure you have line
rsync           873/tcp

in /etc/services

and line

rsync   stream  tcp      nowait   root    /usr/bin/rsync  rsyncd

--daemon

(one line!)
in /etc/inetd.conf

You will need to restart inetd if modifying it:

killall -1 inetd

Dmitry

P.S.: I have rsync 2.6.0 (fresh release) rpm and src.rpm package, can
email both to you if you're interested.

> I've upgraded from a RaQ XTR to a 550 but am struggling to get rsync
> to run. We use rsync to move our CMU archive to a backup server with
> permissions intact.
>
> I would like to hear from anyone who has rsync running in daemon mode
> on a RaQ 550.
>
> No matter how I configure rsyncd.conf, I keep getting "connection
> refused" when trying to connect from a client to the rsync server.
>
> I notice in /etc/xinetd.d/rsync that rsync is set to disabled = yes.
> I've changed that to no, but I can't see the xinetd is started
> anywhere so this was probably a waste of time.


_____________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users

_____________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users

_____________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users