Search code examples
sshrsync

how to using Rsync without SSH and rsh


I am trying to setup Lsync + Rsync for 2 Server target files synchronization, I already run Rsync --daemon at Server01, is there any way we can use Rsync to access Server01 without SSH and rsh? because I think Rsync --daemon already opened port 873 for accepting TCP connection, but i failed if I turn-off sshd.

thanks,
Emre


Solution

  • Do you really connect to port 873 when sshd is running on Server1? It sounds weird that you would loose connection when dropping the sshd daemon. My guess is that when sshd is running you use that connection rather than the port 873.

    Anyway i would suggest checking your firewall setup. I would do it by placing netcat to listen on server 1 and then try to netcat to that from server 2:

    Server1: nc -l -p 873
    Server2: nc server1.com -p 873
    

    I am no expert on the issue, but briefly looking at the man page [1] it should be doable, at least with options 'auth_users': "The default is for all users to be able to connect without a password" : That is, you might need some configuration parameters toggled.

    [1] http://linux.die.net/man/5/rsyncd.conf