Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Allow only certain users to log in via ssh' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Allow only certain users to log in via ssh
Authored by: dlong on Sep 01, '05 01:57:14PM
On a 10.3 box, this configuration has an unintended consequence. (The rsync is version 2.6.2 protocol version 28.) I have a crontab that uses /usr/bin/rsync to copy some files from one machine to another each night, as a backup measure. After adding the "AllowUsers" line to my /etc/sshd.conf file, this rsync can no longer run. The output says simply:

rsync error: error in rsync protocol data stream (code 12) at /SourceCache/rsync/rsync-14/rsync/io.c(342)
Thu Sep  1 02:00:00 PDT 2005
/etc/ssh_config: line 38: Bad configuration option: AllowUsers
/etc/ssh_config: terminating, 1 bad configuration options
rsync: connection unexpectedly closed (0 bytes read so far)
I'd love to use AllowUsers, but not at the expense of breaking rsync! Anyone else experience this, or know of a workaround?

[ Reply to This | # ]