LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 02-13-2008, 11:30 PM   #1
saigiridhar
LQ Newbie
 
Registered: Dec 2007
Posts: 19

Rep: Reputation: 0
RSH connection refused in RHEL5


hi all,
I installed RHEL5 in x86... Now i need the rsh service enabled.. But the service is not running.... I installed rsh-0.17-37-e15.i386.rpm which is the rsh server... I dont see any rsh,rlogin files in /etc/xinetd.d.. When i try rsh it shows the error " connection refused through port 544" and " no route to host" error... The rshd daemon is not running.. How to start rsh now..? What may be the error?
 
Old 02-14-2008, 06:04 AM   #2
doublejoon
Member
 
Registered: Oct 2003
Location: King George, VA
Distribution: RHEL/CentOS/Scientific/Fedora, LinuxMint
Posts: 370

Rep: Reputation: 44
I usually remove any rsh, rlogin etc... Is ssh not an option for ya?
 
Old 02-14-2008, 10:37 AM   #3
saigiridhar
LQ Newbie
 
Registered: Dec 2007
Posts: 19

Original Poster
Rep: Reputation: 0
I need to use rsh.... why is that connection refused error occuring..?
 
Old 02-14-2008, 10:45 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
rsh is the client, rsh-server is the server.
 
Old 02-19-2008, 10:12 AM   #5
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
saigiridhar,
Please answer doublejoon's Q about why you need rsh, I'm sure s/he asked it out of concern for the security of your system. Edit: Remove reference to "ssh" -- should be "rsh" throughout post.

Current wisdom is that telnet, rsh, & all their un-encrypted relatives should (almost) never be used. We would love to see a counter example.

Also, if you're going to continue to use rsh, for whatever reason, expect your use of it to be questioned any time you post about it. It might be well to avoid the well intentioned "Why do you use that?" by including a short reason w/ the original post; even if it's a brief "Don't ask, I really have to use it."

Last edited by archtoad6; 02-27-2008 at 04:57 AM. Reason: typo: change "ssh" to "rsh"
 
Old 02-25-2008, 08:14 AM   #6
jhollinger
LQ Newbie
 
Registered: Feb 2008
Posts: 2

Rep: Reputation: 0
I can't speak for saigiridhar, however in my case I'm running into a similar situation... For me it's because of a high end CFD software that needs access to rsh in order to send jobs out to other machines.

When trying to run a program I get:
----------------------------------------------------------------
[me@machine232 ~]$ rsh xxx.xxx.xxx.175 -l me -n ls

connect to address xxx.xxx.xxx.175 port 544: Connection refused
Trying krb4 rsh...
connect to address xxx.xxx.xxx.175 port 544: Connection refused
trying normal rsh (/usr/bin/rsh)
Couldn't get address for your host (xxx.xxx.xxx.232)
----------------------------------------------------------------


But if I try:
----------------------------------------------------------------
[me@machine232 ~]$ rsh xxx.xxx.xxx.175 -l me

connect to address xxx.xxx.xxx.175 port 544: Connection refused
Trying krb4 rsh...
connect to address xxx.xxx.xxx.175 port 544: Connection refused
trying normal rsh (/usr/bin/rlogin)
rlogin: Host address mismatch.
Password:
----------------------------------------------------------------
I can enter my pass and get logged in. So it seems that it's partially setup... Any help would be greatly appreciated!
 
Old 03-08-2008, 09:51 AM   #7
saigiridhar
LQ Newbie
 
Registered: Dec 2007
Posts: 19

Original Poster
Rep: Reputation: 0
Actually i needed to use MPI however i did it with passwordless ssh. But now i'm requiring it as i need to integrate SGE(a grid engine tool) with MPI hence i need rsh badly right now....
 
Old 03-08-2008, 03:42 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well i already told you what to do if you're still waiting for help...
 
Old 02-05-2010, 12:54 PM   #9
LukeS
LQ Newbie
 
Registered: Feb 2010
Posts: 1

Rep: Reputation: 0
I am running into the same problems as the other 2. my reasons are my own for why. however, acid_krewpie, you didn't entirely explain what the issue could be.
 
Old 02-05-2010, 04:21 PM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well he'd apparently not actually installed the server package, only the client.
 
Old 11-22-2011, 05:52 AM   #11
ktmariappan
LQ Newbie
 
Registered: Mar 2011
Posts: 6

Rep: Reputation: 1
rsh/rlogin 543 connection refused

Pleease disable the firewall/SELINUX for do the follows

#setup //Here you have select firewall configuration and disable both. like

тттттттттттттЄ Firewall Configuration тттттттттттттт
т т
т A firewall protects against unauthorized т
т network intrusions. Enabling a firewall blocks т
т all incoming connections. Disabling a firewall т
т allows all connections and is not recommended. т
т т
т Security Level: ( ) Enabled (*) Disabled т
т т
т SELinux: т
т т
т Disabled т
т т
т тттттт ттттттттттттт тттттттттт т
т т OK т т Customize т т Cancel т т
т тттттт ттттттттттттт тттттттттт
 
Old 12-14-2011, 08:44 AM   #12
asiddique2u
LQ Newbie
 
Registered: Sep 2011
Location: bangalore
Distribution: ubuntu, centos
Posts: 28

Rep: Reputation: Disabled
I am also facing the same problem and none of the solution above is working for me. I am using a tool which uses rsh feature and I configured rsh successfully. It was working fine but suddenly it stopped working. Getting the error "connection refused". I am using rhel6.
 
Old 12-18-2011, 08:24 PM   #13
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Install "rsh-server" package
Make sure you add the hostname/ip address in the ~/.rhosts file
You also need to add port 975 on the firewall
Also edit the /etc/pam.d/rsh AND /etc/pam.d/rlogin and add/modify
auth sufficient pam_rhosts_auth.so promiscuous

Add rsh and rlogin to /etc/securetty
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Connection refused rsh onaeem Linux - Networking 7 02-25-2011 12:44 AM
MPICH RSH connection refused error Majikman111 Linux - General 7 01-10-2008 10:15 PM
rsh localhost - connection refused mstembri Linux - General 11 10-22-2007 09:30 AM
rsh / rcp connection refused DotHQ Red Hat 3 09-07-2006 08:45 AM
rsh localhost : connection refused StressedLemming Linux - Networking 1 11-09-2003 12:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 02:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration