Operating System - HP-UX
1834454 Members
2604 Online
110067 Solutions
New Discussion

how to configure rsh in hpux

 
Sreer
Valued Contributor

how to configure rsh in hpux

Hello All,
Could you pls explain how to configure ssh and rsh in hpunix?

Thanks in advance

Sreekumar
7 REPLIES 7
Pete Randall
Outstanding Contributor

Re: how to configure rsh in hpux

First off, let's define our terms here. We know ssh is secure shell, but I'm guessing that when you say rsh, you're referring to a remote shell (which is called remsh) rather than a restricted shell (which is called rsh).

Can you confirm?


Pete

Pete
Steven E. Protter
Exalted Contributor

Re: how to configure rsh in hpux

Shalom,

ssh and rsh are two totally different animals

rsh is configured in inetd.conf and is not recommended because its not secure.

ssh.

Doc
http://docs.hp.com/en/5992-2852/ch08s07.html
Installation will get you going in a secure mode. Some configuration required for higher end security features.

Fun.

really.

lots of fun.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sreer
Valued Contributor

Re: how to configure rsh in hpux

Hello Pete,
thanks for your reply.
It is clear rsh only not remsh.

Could you explain as steps.
I think first we need to make entry in /etc/inetd.conf?

after that do we need to run rsh start?

or do we install any package for that?

thanks
Sreekumar.R
sreekanthtm
Trusted Contributor

Re: how to configure rsh in hpux

>>>rsh
Configuration file is .rhosts. The file will be there in each user's home directory. For root its /.rhosts. You can give permission based on username OR hostname.

Rgds
Sreekanth
Danny Petterson - DK
Trusted Contributor

Re: how to configure rsh in hpux

To split it up a bit if your are new to it:

Be sure all remshd-lines are NOT commented out in /etc/inetd.conf - meaning NO "#" in the beginning of the lines.

If you change anything in the file, restart inetd:

/sbin/init.d/inetd stop
/sbin/init.d/inetd start

On the machines you need to remsh to, make a file in the user's (the one you want to use when you use remsh) homedirectory, called .rhosts. If you want to login as root, it should be in root's homedir, which usually is /. The file could look like this:

server1 root
server2 mrsmith

...making it possible for root to connect from server1, and the user mrsmith to connect from server2.

...but you would consider, if it is an option, to use ssh.

Yours
Danny

Pete Randall
Outstanding Contributor

Re: how to configure rsh in hpux

The .rhosts configuration file does NOT configure rsh, it configures remsh. There is also a system wide file called /etc/hosts.equiv, but neither it nor ~/.rhosts have anything to do with rsh.


Pete

Pete
James R. Ferguson
Acclaimed Contributor

Re: how to configure rsh in hpux

Hi:

> It is clear rsh only not remsh.

The term 'rsh' stands for "Restricted SHell". The term 'remsh' stand for REMote SHell".

If you truly mean to setup a restricted shell environment you will need to specify '/usr/bin/rsh' as the shell for the user account in '/etc/passwd'.

Regards!

...JRF...