rsh does not work

This is a discussion on rsh does not work within the Linux Networking forums, part of the Linux Forums category; I have Debian installed on two PCs and want to perform rsh between them. Following phenomena: ================== - PC 1 can issue ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-07-2004
Herbert Haas
 
Posts: n/a
Default rsh does not work


I have Debian installed on two PCs and want to perform rsh between
them.

Following phenomena:
==================

- PC 1 can issue rsh commands on PC 2 but not vice versa. ("rsh: could
not make a connection, connection refused")

- rsh localhost does not work on neither PC


What I did so far:
==============
First I installed rsh-client and rsh-server on both machines.
Later I found out that Debian developers recommend to use the new
packages rsh-redone-client and rsh-redone-server instead. So I
installed them (and removed the standard rsh packages). But no
changes...

I checked
~/.rhosts (contains both machines and usernames, and I made also
chmod 600)

/etc/hosts.allow (both hosts entered)
/etc/hosts.deny (no host entered)
/etc/hosts.equiv (both hosts entered)
/etc/inet.conf entries (services in.rshd enabled)

... but it does not work....

Thanks for any help
Reply With Quote
  #2 (permalink)  
Old 04-10-2004
Amir Malik
 
Posts: n/a
Default Re: rsh does not work

Herbert Haas wrote:

> I have Debian installed on two PCs and want to perform rsh between
> them.


Why would you ever want to use rsh (it's insecure, passwords transmitted
over the network in clear-text)? I would suggest using ssh. apt-get
install ssh should install the required client and server binaries.

> - PC 1 can issue rsh commands on PC 2 but not vice versa. ("rsh: could
> not make a connection, connection refused")


Is the rsh "server" listed in your inetd.conf or xinetd.conf?

Take a look at SSH (see http://www.openssh.org/), as it includes all of
the features found in rsh, and more.

--
Amir Malik
http://www.unoc.net/a/ | $email =~ s/SPAMBLOCK/a/;
4296 EE70 8F7C 1D1A D3C9 D885 95A9 6F83 73E7 589E
Reply With Quote
  #3 (permalink)  
Old 04-11-2004
Antoine EMERIT
 
Posts: n/a
Default Re: rsh does not work

Herbert Haas <admin@localhost.com> wrote
news:4j4870d4ncpovcc2pg9814qhu7v5k2lqht@4ax.com:
> - PC 1 can issue rsh commands on PC 2 but not vice versa. ("rsh: could
> not make a connection, connection refused")


Check your /etc/inetd.conf file for rsh line.

Add the client hostname in the /etc/hosts.allow file, check also the
/etc/hosts.deny file. Use 'man tcpd', 'man hosts.allow', 'man hosts.deny'
and 'man hosts.equiv' for full configuration detail.

And use ssh instead of rsh. ssh is more secure and easier to configure.

Regards
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 12:18 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0