1833717 Members
2593 Online
110063 Solutions
New Discussion

About rsh

 
SOLVED
Go to solution
hangyu
Regular Advisor

About rsh

I have two host ( hostA and hostB ) , now hostA can use " rsh -l userB hostB " to rsh to hostB without input the password , it work fine, but if I modify it to " rsh -l userB hostB -n "ls" " , it will pop the message "Permission denied." , could suggest what is wrong ? thx
2 REPLIES 2
KapilRaj
Honored Contributor

Re: About rsh

If this is hpux, "rsh" is the restricted shell so you may need to use remsh.
IF this is aix , rsh is the correct one , but the syntax does not look ok to me ! check the man pages

Kaps
Nothing is impossible
Suraj Singh_1
Trusted Contributor
Solution

Re: About rsh

Hi,

If you are talking about remote shell, then in HPUX the command is remsh.

The problem of "permission denied" can occue if you have a bad or missing ~.rhosts or /etc/hosts.equiv file. To check that give the following command (from hostA) and see if you are asked for password:
$ remsh -l userB hostB

If you are asked for password, then you have a missing or bad files...

Syntax for the above mentioned files is:
hostname username

See "man rhosts" for more inputs...

HTH,
Suraj
What we cannot speak about we must pass over in silence.