i am trying to use a rsh script that uses the rcp command to copy files from server to server but it always produce the following error:
HOSTNAME: protocol failure due to unexpected closure from server end
Error: failed to copy /test to HOST2 system
Error: failed to execute command on remote host HOST2
i have checked .rhosts file and hosts.equiv and everything seems to be fine. All entries are correct
i have checked the firewall and it seems that rsh port 514 still accepts UDP/TCP connections which seems to be fine too.
i also have tested the port with telnet commend and gets connected
i am confused
i couldn't find any solution over the internet
i hope you guys help me find a way to solve this problem
many thanks
---------- Post updated at 03:04 AM ---------- Previous update was at 02:55 AM ----------
i forgot to mention that i am using AIX 7.1