is their a special reason why you want to use rsh/rcp?
I'd suggest that you use ssh/scp instead.
Main Topics
Browse All TopicsWe are in the process of setting up a Dell Poweredge 2850 with Red hat Enterprise Linux 3 to be our Disaster Recovery server.
Our production data is on an IBM 7026-H80 running AIX 4.3.3.
To move all the data and software from the AIX to the Linux we would like to use the rcp command.
When I run: [root@LINUX Box]# rcp test.txt AIXserver:/home
I get the following:
Trying krb4 rcp...
krb_sendauth failed: You have no tickets cached
trying normal rcp (/usr/bin/rcp)
The file copied successfully to the AIXserver.
When I run: [root@AIXserver]# rcp test.txt LINUX Box:/home
I get this message:
LINUX Box: A remote host refused an attempted connect operation.
Questions are:
When I try from Linux to AIX I get 'krb_sendauth failed: You have no tickets cached'.
and when I try from AIX I get ' remote host refused an attempted connect operation.'.
How do I fix these errors?
I have created on both platforms: /.rhosts, /etc/hosts.config
I have defined both servers in both /etc/hosts.
Your assistance will be greatly appreciated.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
from aix to linux you're getting the rsh/rlogin because r* services are defaulted to off on most linux distros for being insecure (cleartext, just like telnet). ahoffman's suggestion to use ssh/scp instead of rsh/rcp is an excellent idea. See http://unix.ittoolbox.com/
Timely topic.
I am experiencing the same issue migrating from Aix 4.3.3 to Fedora Core 4.
Also at another client I will be migrating from AIX 5.1 to Enterprise Linux AS 4.
At a third client we will be migrating from DG (unknown OS version) to AIX 5.3.
The problem is some of these older machines do not have ssh / ssl installed and in some cases are so ancient that it is difficult to configure ssh and ssl on them. The point is to migrate off them as quickly as possible. Therefore, running scp or ssh from the older machine to the new Linux boxes is not an option. You could configure the new machine to allow these commands to work; my solution is to pull the data from the old machine to the new one. In that manner, you do not compromise security on the new machine.
Which brings us back to the original question.
Bottom line is the command was successful and accomplished the copy. It was just squawking about your lack of attention to security issues. I have tried several things to eliminate these messages and have not been successful.
I have observed several such commands in operation recently and they seem to attempt connections from the most secure to the least and report failures as they descend.
Not to worry, the file was copied.
If you are planning to move entire directory structures, it is possible to migrate them without making an interium copy. The trick is to create a tar image on the source machine and pipe it to a tar command on the target machine.
The following worked on my configuration. The pontiac server is running Linux Fedora Core 4 and the chevrolet server is running AIX 4.3.3.
[root@pontiac junk]# pwd
/brc/junk
[root@pontiac junk]# rsh chevrolet '(cd /brc/sg; tar cf - try4)'|tar xvf -
Trying krb4 rsh...
krb_sendauth failed: You have no tickets cached
trying normal rsh (/usr/bin/rsh)
try4/
try4/f4.3
try4/f4.4
try4/f4.1.Z
try4/f4.2.Z
try4/f4.5
[root@pontiac junk]# ls -lR
.:
total 4
drwxr-sr-x 2 root sys 4096 Mar 9 06:44 try4
./try4:
total 1072
-rw-r--r-- 1 root sys 1085668 Mar 9 06:34 f4.1.Z
-rw-r--r-- 1 root sys 2247 Mar 9 06:36 f4.2.Z
-rw-r--r-- 1 root sys 0 Mar 9 06:40 f4.3
-rw-r--r-- 1 root sys 0 Mar 9 06:41 f4.4
-rw-r--r-- 1 root sys 0 Mar 9 06:44 f4.5
[root@pontiac junk]#
I would change the xvf to xf on the rsh command to minimize screen output.
The above will work fine. However, I have experienced some issues you should watch for.
1) The machine must both be configured to process files larger than 2GB if that applies.
2) If there is a network switch involved, the communication link can cause collisions if the network interface is set to auto negotiate. I have had to set them to 100 or 1000 and turn off auto negotiate on both the switch and the AIX interface. The more data you are pumping, a bigger the pipe will make a difference.
Good Luck
Business Accounts
Answer for Membership
by: aashishkuntePosted on 2006-02-16 at 11:45:03ID: 15974419
Dear slcoit,
Have you tried rlogin from each machine to other ? I think
>>>> When I try from Linux to AIX I get 'krb_sendauth failed: You have no tickets cached'.
your rcp protocal is using krb i.e kerbarose. Please check your Rlogin shell and auth parameters in /.rhosts
>>>>> from AIX I get ' remote host refused an attempted connect operation.'.
The port is not open or firewall present at othere end which is blocking connection
Please turn off iptables in Linux. and first try rlogin wheather it is possibel !
Regards,
Aashish