Permission denied while executing rsh

Hi All,

I have two servers, say server1 and server2.
I have put the entries of both servers in /.rhosts file of both servers.
So, when I tried to run following from server1-

rsh server2 "ls"

Permission denied was printed on console.

Can anyone help me out?

Regards,
akash mahakode

simple first questions..

1/ can you rsh directly / interactively?

2/ in your .rhosts what format are you using ? i.e. on server2 is the .rhosts entry:

server1 <username>

where server1 is the official name, not a nickname

3/ is there anything in /etc/hosts.deny on server2 ?

Hi Tytalus,

Ans 1. I use rsh directly e.g. rsh server2 "ls".

Ans 2. Previously I had following entries in /.rhosts of both servers-

server1
server2

Now, I modified it to -

server1 root
server2 root

But the problem persists.

Ans 3. I didn't find file named as /etc/hosts.deny file on both servers.

Regards,
akash mahakode

ah - for 1 I actualyl meant - can you simply rsh from server 1 to server 2 i.e.

rsh server2

with no command specified...

possibly a name resolution issue - you might want to try replacing the server1 name with the IP address, and potentially (for testing) replace username with + to allow ALL users.

if you're still having probs it might be tcp wrapper related, or maybe firewall territory

Hi Tytalus,

When I tried on server1

rsh server2

then it asked for password, after providing the password for server2, server2 prompt got opened.

I also tried provding the IP of server2 but it didnt work.
What should I do? :frowning:

Regards,
akash