1823290 Members
3265 Online
109651 Solutions
New Discussion юеВ

how to enable rsh

 
Mujtaba Khan
New Member

how to enable rsh

Hi,
i want to enable rsh on my machine actually . what i did is create a file by name .rhosts in /etc enter the hostname i want to access . Do the same on the machine to whom i want to access but fail . error is host not found .

Regards

Mujtaba Khan
7 REPLIES 7
James R. Ferguson
Acclaimed Contributor

Re: how to enable rsh

Hi:

I think you mean 'remsh' for "remote shell". Assuming that you have properly configured your '.rhosts' files, then make sure that the 'shell' service isn't commented-out in '/etc/inetd.conf'. If it is, un-comment it and restart the 'inetd' daemon:

shell stream tcp nowait root /usr/lbin/remshd remshd

# /usr/sbin/inetd -c

Regards!

...JRF...

Patrick Wallek
Honored Contributor

Re: how to enable rsh

If you created the file in /etc, then the name should be hosts.equiv rather than .rhosts. The .rhosts file, if used, belongs in your home directory.

# man rhosts
or
# man hosts.equiv

for more information.
Steven Schweda
Honored Contributor

Re: how to enable rsh

> [...] but fail . error is host not found .

_What_ fails? Exactly what command did you
use? (And where did you use it?) Exactly
what happened when you tried it? (Do "copy"
and "paste" work for you?)

> [...] on my machine [...]

What _is_ your machine? "uname -a"?
Mujtaba Khan
New Member

Re: how to enable rsh

Hi,

consider host names are
Machine A (172.19.74.47)
Machine B (172.19.74.48)

what i want is to do remsh to machine B from machine A.

Entry in hosts.equiv (Machine A)

# machineB 01_srv root
172.19.74.48

Entry in hosts.equiv (Machine B)
172.19.74.47


..
# remsh 172.19.74.48
├в ┬мPassword:

it require password .. what i want is it wont ask for password and allow me to in directly.

Regards

Mujtaba Khan

Yogeeraj_1
Honored Contributor

Re: how to enable rsh

hi Mujtaba Khan,

Normally, this is the way to go around:

Assuming you want to copy a directory subtree from Machine B to Machine A. The steps are:

1. At machine A
a) Create /.rhosts file and add 2 lines



2. At Machine B, repeat the step (1.a)

3. Login as root from Machine B

4. Try rlogin
This should log you in to Machine A without password.

5. From Machine A try
rlogin
Again login should happen without password.

6. Now You must be in Machine B. Assuming you want to copy /tmp/mydir

# rcp -r /tmp/mydir :/

7. Verify files check at your Machine A if you got the files. if so, you can proceed.


hope this helps!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Pete Randall
Outstanding Contributor

Re: how to enable rsh

It appears that you are trying to remsh as root. In that case hosts.equiv is ignored and you must have .rhosts set up in root's home directory (see man rhosts).


Pete

Pete
Mujtaba Khan
New Member

Re: how to enable rsh

Thanks a lot to all we achieve our objective by rsync (linux but for HP-UX need some file to be download and configure) and very use ful as well.

Regards

Mujtaba Khan