1753435 Members
4600 Online
108794 Solutions
New Discussion юеВ

Re: Remote shell

 
SOLVED
Go to solution
ramesh_4
Occasional Advisor

Remote shell

What is the use of rsh? can anyone please explain?

like to find out new things and compare with other flavours of unix
3 REPLIES 3
Shahul
Esteemed Contributor

Re: Remote shell


Hi

rsh is not remote shell. It stands for restricted version of POSIX or Bourne shell. It sets up a login name and execution environment whose capabilities are more controled than normal shells.

Shahul
federico_3
Honored Contributor
Solution

Re: Remote shell

the coomand you should use is remsh. rsh is not a HP-UX command.

It connects to a specified host and executes the specified command.

From SERVERA do:
remsh SERVERB -l username -n "command "
The command will be executed without the request of the passsword if in $HOME(username)/.rhosts (on SERVERB)there is the entry:
your_account(inSERVERA) SERVERA


Federico
James R. Ferguson
Acclaimed Contributor

Re: Remote shell

Hi:

'rsh' is the "restricted shell". From the man pages for 'sh-posix':

rsh is used to set up login names and execution environments where capabilities are more controlled than those of the standard shell. The actions of rsh are identical to those of sh, except that the following are forbidden:

+ Changing directory (see the cd special command and cd(1))
+ Setting the value of SHELL, ENV, or PATH
+ Specifying path or command names containing /
+ Redirecting output (>, >|, <>, and >>)

...JRF...