Jump to content

ssh and rsync problem


Guest anon
 Share

Recommended Posts

Why doesn't this work. What simple thing am i missing?

[root@localhost me]# rsync -e ssh -auvn 213.232.xxxx::test/ /home/me/tmp
Enter passphrase for key '/root/.ssh/id_rsa':
Password:
@ERROR: auth failed on module test
rsync: connection unexpectedly closed (88 bytes read so far)

 

Contents of rsyncd.conf

motd file = /etc/motd

uid = nobody

gid = nobody

use chroot = no

pid file = /var/run/rsyncd.pid

max connections = 2

syslog facility = local5

 

[test]

    path = /home/admin/test

    comment = tryout

    auth users = root

    secrets file = /etc/rsyncd.secrets

Contents of rsyncd.secrets file.

root:test123
Link to comment
Share on other sites

I know nothing about this, but just from my observation:
[root@localhost me]# rsync -e ssh -auvn 213.232.xxxx::test/ /home/me/tmp
path = /home/admin/test

 

Maybe the path needs to be /home/admin?

Could that be the problem?

Thanks, but no thats not it.

"test" is the directory that holds the files. Its also the rsync "module" that tells rsync the location of the files. The error code "auth failed on module test" is saying its found the files but i don't have permission to access them. so its either not reading the secrets file correctly, or something else...... :unsure:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...