how to setup rshfor HPUX

I want to setup rsh, what things do i needed? where to downlaod rsh? and how to conifgure it? is there any files to configure?

On HP-UX, "rsh" is usually the restricted shell, not the remote shell. The remote shell is named "remsh". Man remsh for more information.

And if it is the restricted shell you are talking about :
rsh Restricted version of the POSIX or Bourne shell command
interpreter. Sets up a login name and execution
environment whose capabilities are more controlled
(restricted) than normal user shells.

Then, Go and look at the man: man sh-bourne (1) for complete documentation of implementation

thank you,so it is remsh? i want to run a script in HPUX and aix in my linux server, this is what i wanted, i want to change ip in hpux servers and aix, for DR purposes.

When i tried to test remsh this what i got, i really wanted to run a script, what will i do?

# remsh server1 'uptime'
permission denied

# remsh server1
Password:

# remsh server2
Password:

Configuring hosts.equiv and .rhosts will help.

it wont for password anymore? and i can run the script?

After configuring these two files, it wont prompt you for the password.

have you tried configured? can i see some sample? at least i have an idea

It is simple configuration. Suppose you have two hosts, hostA and hostB.

From hostA, you want to do remsh on hostB. Then in hostB, create a file /etc/hosts.equiv and put hostA in hosts.equiv. But this user equivalency will work if the user with which you are logged in on hostA exists on hostB with same mnemonic name.

Note: If you are logged in as root on hostA then /etc/hosts.equiv will not work. Instead create .rhosts in the root directory of root on hostB.

Hope this helps.

Ok, i already did what you told me. Below are the logs while trying to remsh to my aix box.

rshd: 0826-826 The host name for your address is not known.

and in the solaris.
permission denied

note: i can directly telnet using my root account to any server.

Yoh,
in /.rhosts it should be root host1, and also to /etc/hosts.equiv.

it will make a difference :slight_smile:

$hostname
hosts2
$ cat .rhosts
root host1
$cat /etc/hosts.equiv
root hosts1

#hostname
hosts1
#remsh hosts2 -l root uptime
09:53AM up 89 days, 1:04, 2 users, load average: 0.07, 0.09, 0.10

Thanks :slight_smile: it will work dude

thanks it works for me