rcp between two unix machine

rcp user@hostname:sourcefile destfile

when i use the above command i get the followin error:

remshd:login incorrect.

i have taken care of entries in .rhosts and hosts.equiv. the userid
on both the system is the same. is there any thing i have missed out

please help me

For a start, the user@hostname: bit should come before destfile, e.g.

rcp sourcefile user@hostname:destfile

If your source and target machines support scp, use that instead as it's far more secure.

Cheers
ZB

hi zazzybob,

lets assume i have two unix machine A & B. If i want to copy a file from system B, how will the above command work. My source file is residing on system B.

bye

Hi,

you can also do your syntax, but than you also have to enter the server B on the server A.

you are copying a file initiated by server b to server a which means server a needs also the authentication config for server b.

regards
malcom

I have ensured that the Login id on both the system is the same.

I have taken care of entries in .rhosts and /etc/hosts.equiv on both the systems.

I am able to ping, ftp, rlogin between two systems.

YET rcp gives the following error:

remshd:login incorrect.

clue: rlogin is asking for passwd, which should not be the case