Connection refused

Sam Smith sam at
Thu Aug 1 12:36:01 EST 2002

>> rsh is good:
>> [g3p:~] smith% rsh -l a1012
>> Password:
>> {a1012 at}
>> rsync not good:
>> ...
> actually, "rsh" is not good enough. it's asking you for a password,
> which means without user/pwd authentication it won't run.

Being it's a secret where the password is configured for an rsync
connection, I created a user with the same username/password on both the
local and remote machines. This allows me to rsh in without a password and
rsync now works in one direction BUT it asks for the password. %[[/home/a1012]>% rsh
Welcome to FreeBSD!
{a1012 at} date
Thu Aug  1 11:02:34 GMT 2002

BUT :([/home/a1012]> rsh date Connection refused

AND I can go one way but not the other.

### From remote back to me, OK:
{a1012 at} rsync -av .
a1012 at's password:
receiving file list ... done
wrote 32 bytes  read 114 bytes  22.46 bytes/sec
total size is 0  speedup is 0.00

### From me to remote:[/home/a1012]> rsync -av . Connection refused
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(150)

Local .rhosts file (works):[/home/a1012]> l .rhosts
-rw-------  1 a1012  a1012  13 Aug  1 13:58 .rhosts[/home/a1012]> cat .rhosts

Remote .rhosts file (fails):
{a1012 at} l .rhosts
-rw-------  1 a1012  users  291 Aug  1 10:55 .rhosts
{a1012 at} cat .rhosts

I can rsh in either direction without a password.

More information about the rsync mailing list