- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Can't rsh to a RHAS2.1
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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-28-2004 02:48 PM
тАО10-28-2004 02:48 PM
Can't rsh to a RHAS2.1
I am trying to do a rsh to a RHAS2.1 server from another RedHat6.2 server but it failed
(redhat 6.2 server)$ /usr/bin/rsh -l mon 192.168.23.54 'ls'
"192.168.23.54: Connection refused" message
On the RHAS2.1 server, there are no logs that indicate the failure in the /var/log/messages
In /etc/xinetd.d/rsh, disable=no
On the RHAS2.1 server, the user mon can rsh to itself without any problems
what could be the problem?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2004 05:54 PM
тАО10-28-2004 05:54 PM
Re: Can't rsh to a RHAS2.1
# iptables -L
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2004 09:37 PM
тАО10-28-2004 09:37 PM
Re: Can't rsh to a RHAS2.1
On my RH 8.0 I must set a list of trusted hosts and users for rsh in /etc/hosts.equiv in a format:
[+|-] [hostname] [username]
Please see man hosts.equiv.
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2004 09:41 PM
тАО10-28-2004 09:41 PM
Re: Can't rsh to a RHAS2.1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2004 11:22 PM
тАО10-28-2004 11:22 PM
Re: Can't rsh to a RHAS2.1
So if you want to use rsh you need to specify which users and hosts you trust.
For the ssh security see man ssh.
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2004 11:30 PM
тАО10-28-2004 11:30 PM
Re: Can't rsh to a RHAS2.1
Rereading my post I see that I forgot to answer your question.
Both rsh and ssh can be used on the same system. They work on two different tcpip ports.
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2004 02:41 PM
тАО10-31-2004 02:41 PM
Re: Can't rsh to a RHAS2.1
Next thing to do is to make sure that /etc/hosts.allow and /etc/hosts.deny aren't dis-allowing it (is there an ALL:ALL in '/etc/hosts.deny' ? or any reference to 'in.rshd' ?).
Other than that, refreshing the 'xinetd' config using 'service xinetd reload', and ensuring no errors show up in '/var/log/messages', and that the 'rsh' service is listed.
That should account for a 'Connection refused' error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2004 03:33 PM
тАО10-31-2004 03:33 PM
Re: Can't rsh to a RHAS2.1
On the RHAS2.1 server, the user mon can rsh to itself without any problems
iptables is not enabled
I have added the entries into /etc/hosts.equiv
/etc/hosts.deny and /etc/hosts.allow are empty
I ran the command
service xinetd reload
/var/log/messages does not show that it is removed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2004 12:06 PM
тАО11-01-2004 12:06 PM
Re: Can't rsh to a RHAS2.1
there is yet another way how to do it working
place on remote box into $HOME of connecting user file .rhosts with following line
box1 user1
box2 user1
(trused box and user)
boxes must be also in /etc/hosts
also check if all r
check also if rcpbind is running on remote box
rpcinfo -p
br Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2004 01:44 PM
тАО11-01-2004 01:44 PM
Re: Can't rsh to a RHAS2.1
As you are RSH'n from userA to user 'mon', the .rhosts for the 'mon' user needs to know that you're also coming from a different user.
rh62serv
Add that entry to mon's .rhosts file, and you'll get more joy.