- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- rsh gives connection refused but .rhost configured
Operating System - Linux
1821584
Members
3531
Online
109633
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2007 09:42 PM
тАО10-09-2007 09:42 PM
What configuration do I need to check in order
to solve this ?
audibxua0001:~ # rsh -K -l root audibxua0001 uname -a
audibxua0001.vwbx.emea.vwg: Connection refused
audibxua0001:~ # uname -a
Linux audibxua0001 2.6.16.21-0.8-smp #1 SMP Mon Jul 3 18:25:39 UTC 2006 i686 i686 i386 GNU/Linux
audibxua0001:~ # rsh -l root audibxua0001 uname -a
audibxua0001.vwbx.emea.vwg: Connection refused
audibxua0001:~ #
On the other side the .rhosts file looks okay:
audibxug0001:~ # more .rhosts
audibxua0001 root
orasrv1 root
orasrv2 root
audibxug0001:~ #
Both machines are on the same lan segment.
Dns is correctly configured, I checked all
with nslookup.
What else do I need to check ?
to solve this ?
audibxua0001:~ # rsh -K -l root audibxua0001 uname -a
audibxua0001.vwbx.emea.vwg: Connection refused
audibxua0001:~ # uname -a
Linux audibxua0001 2.6.16.21-0.8-smp #1 SMP Mon Jul 3 18:25:39 UTC 2006 i686 i686 i386 GNU/Linux
audibxua0001:~ # rsh -l root audibxua0001 uname -a
audibxua0001.vwbx.emea.vwg: Connection refused
audibxua0001:~ #
On the other side the .rhosts file looks okay:
audibxug0001:~ # more .rhosts
audibxua0001 root
orasrv1 root
orasrv2 root
audibxug0001:~ #
Both machines are on the same lan segment.
Dns is correctly configured, I checked all
with nslookup.
What else do I need to check ?
Look before you leap
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2007 10:48 PM
тАО10-09-2007 10:48 PM
Solution
Three things:
1) Unless you've specifically allowed the 'root' user to 'rsh' in, it will be rejected. However, it will be rejected with a different message :)
2) Have you installed the 'rsh-server' as well as enabling the service in your super-server (inetd/xinetd) ? Most modern distributions do *not* come with an 'rsh-server' installed by default.
3) Is the firewall allowing tcp port 514 into the box?
1) Unless you've specifically allowed the 'root' user to 'rsh' in, it will be rejected. However, it will be rejected with a different message :)
2) Have you installed the 'rsh-server' as well as enabling the service in your super-server (inetd/xinetd) ? Most modern distributions do *not* come with an 'rsh-server' installed by default.
3) Is the firewall allowing tcp port 514 into the box?
One long-haired git at your service...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2007 03:49 PM
тАО10-10-2007 03:49 PM
Re: rsh gives connection refused but .rhost configured
In addition to enabling the rsh in xinetd you'll also need to check if rsh is added to /etc/securetty for allowing remote root logins.
Also ensure you have the following in the /etc/pam.d/rsh:
auth required /lib/security/pam_rhosts_auth.so
Also ensure you have the following in the /etc/pam.d/rsh:
auth required /lib/security/pam_rhosts_auth.so
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP