rdist - A remote host refused an attempted connect operation.

I need to rdist a file from serverA to serverB. When I do a rdist from serverA, it's giving me a "A remote host refused an attempted connect operation.". I have added the serverA's ssh key in serverB and I can ssh without password. But i don't think this is the problem.
1) Do I need to add serverA's ip/hostname into serverB's hosts.allow?
2) What else do I need to check?
3) What causes this refusal from the remote host?
lothlorienAsked:
Who is Participating?
 
yuzhConnect With a Mentor Commented:
rshd was disable that's why rsh doesn't work!

have a look at the following page to learn more about /etc/inetd.conf:
http://ist.uwaterloo.ca/security/howto/2000-09-19/inetd.html
0
 
jlevieCommented:
What OS are you trying to do this on? What was the rdist command line and what is the contents of the rdist control file on the local system?
0
 
yuzhCommented:
rdist is for Solaris only, to make rdist to work your need to create a .rhosts file
under usr's home dir in the remote box, or /etc/host.equiv file.

man rdist
0
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
lothlorienAuthor Commented:
I'm doing this in 2 Solaris AIX server.

========================================
serverA (11.111.11.11)

user1 rdist command line: $ rdist

distfile:
_______________________________
HOSTS = ( user2@22.222.22.22 )

FILES = ( /tmp/a )

${FILES} -> ${HOSTS}
_______________________________
=========================================
serverB (22.222.22.22)

.rhosts is already created in user2's home directory, chmod 600:
_________________
serverA user1
11.111.11.11 user1
_________________
Didn't add anything in /etc/host.equiv
=========================================

I am suspecting it's the hosts name not resolving. Do I need to add the below in serverA's hosts?
22.222.22.22 serverB
0
 
jlevieCommented:
Could there already be a /tmp/a file on the remote not owned by user2? I'm confused by your statement that this is happening on "2 Solaris AIX server". Do you mean that both are Solaris or AIX or that one is Solaris and the other AIX? If the systems have dissimilar operating systems there's a good chance that you won't be able to use rdist between them. I know for sure that you can't rdist between a Solaris and Irix system because the rdist implementations differ.

yuzh,

" rdist is for Solaris only" I'm sorry but that's not true. It exists on my RedHat systems  and has been on every *BSD box I've used including Irix.
0
 
yuzhCommented:
At box A, type in:
rsh 22.222.22.22 echo test

If you can see "test" echoed back to your screen, you permission is OK, otherwise
check your setup again.

also check /etc/inetd.conf to make sure that the r* is not disable. (Warming rsh is
NOT secure, consider use secure shell -- ssh instead!!!)

Good luck!

0
 
yuzhCommented:
jlevie,
     Thanks for the correction, rdist also available for HP-UX, and AIX, but not for SCO.
0
 
lothlorienAuthor Commented:
jlevie,
Oops, I mean serverA AIX and serverB Solaris. Are they able to rdist to each other? Any idea if there is some patch that we're suppose to apply to have these functions?

yuzh,
At serverA, below return same error "A remote host refused an attempted connect operation."
rsh 22.222.22.22 echo test

I've checked /etc/inetd.conf and the below is disabled:
#shell   stream  tcp    nowait  root    /usr/sbin/tcpd  rshd
#login   stream  tcp    nowait  root    /usr/sbin/tcpd  rlogind
#exec    stream  tcp    nowait  root    /usr/sbin/tcpd  rexecd

Sorry for asking the above as I need to make sure that these are what I'm suppose to change as I need to raise a request to another person who owns this server.

Previously I was using RedHat and rdist works fine with ssh ie "rdist -P /usr/bin/ssh -f file". But seems like neither AIX or Solaris are having these options.
0
 
jlevieCommented:
> I mean serverA AIX and serverB Solaris. Are they able to rdist to each other?

Not having tried that combination I can't say. But since it worked before with RedHat there's a decent chance that it will.

As yuzh pointed out the immediate problem is that rshd isn't enabled. Fix that (and set up a correct ~/.rhosts) and let's see what happens.
0
 
gheistCommented:
> Are they able to rdist to each other?

each has rdist in a bit different path, for example aix will try to run /usr/local/bin/rdist via rsh ..... ( mkdir -p /usr/local/bin ; ln -s `which rdist` /usr/local/bin/rdist # to work around on solaris )
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.