Connection refused

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


> 
>> rsh is good:
>> 
>> [g3p:~] smith% rsh -l a1012 sv1.domain.com
>> Password:
>> {a1012 at sv1.domain.com:65}
>> 
>> 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. %[

langate.locd.com[/home/a1012]>% rsh sv1.domain.com
Welcome to FreeBSD!
{a1012 at sv1.domain.com} date
Thu Aug  1 11:02:34 GMT 2002

BUT :(

langate.locd.com[/home/a1012]> rsh sv1.domain.com date
sv1.domain.com: Connection refused

AND I can go one way but not the other.

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

### From me to remote:
langate.locd.com[/home/a1012]> rsync -av srv1.sv1.centralhost.com:aaa.txt .
sv1.domain.com: 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):
langate.locd.com[/home/a1012]> l .rhosts
-rw-------  1 a1012  a1012  13 Aug  1 13:58 .rhosts

langate.locd.com[/home/a1012]> cat .rhosts
66.xxx.209.18

Remote .rhosts file (fails):
{a1012 at sv1.domain.com} l .rhosts
-rw-------  1 a1012  users  291 Aug  1 10:55 .rhosts
{a1012 at srv1.sv1.centralhost.com:152} cat .rhosts
12.xxx.220.246


I can rsh in either direction without a password.





More information about the rsync mailing list