rsh authentication problems


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers rsh authentication problems
# 1  
Old 05-18-2005
rsh authentication problems

I am using rsh and other R commands to login to a machine.
On that target machine, I set up $HOME/.rhosts file with the host/password.
I also setup /etc/hosts.equiv fiel with IP address/username.
I also made sure that rsh was enabled and that no firewall was running.
The /etc/hosts on both machines has the correct IP/hostname info for all machines involved.

Well, when I try to rlogin, it prompts me for the password. Why is this happening?
When I give it the password, it fails to authenticate and after several attempts, kicks me out of the rsh program.


The source system is Solaris 8 with default rsh, the target system is Linux RedHat Advanced Server 2.1.

Last edited by etc; 05-18-2005 at 04:08 PM..
# 2  
Old 05-18-2005
Quote:
Originally Posted by etc
On that target machine, I set up $HOME/.rhosts file with the host/password.
That should be host and username. also check your /etc/hosts.allow & /etc/hosts.allow.
# 3  
Old 05-18-2005
Strange. The following worked a few times but then stopped. It only worked as a regular user, but not as root.

rsh <target_IP> -l <login> <command>

Nothing seems to have changed.... although logic suggest something must have.

Anyway, even after putting the IP address into /etc/hosts.allow, I still get the error message: Permission denied. If I omit the command, it asks for a password.

Last edited by etc; 05-18-2005 at 05:21 PM..
# 4  
Old 05-18-2005
If it didnt work for root, then root is not in the .rhosts file on the remote system. Can you verify this?
# 5  
Old 05-19-2005
Yes, the /root/.rhosts file is there.

I tried going there as root and as a regular user (which too has the .rhosts file) and in both cases, get "Permission denied".

My rhosts file on the target machine looks like this:

<source_host_name_IP_address>
# 6  
Old 05-19-2005
Quote:
<source_host_name_IP_address>
Can you postexactly what you have, but for your own sake replace the numbers of the ip address with X's and the letters in the hostname with Y's?
# 7  
Old 05-27-2005
I got a regular user to work with rsh... I think it was a DNS problem where an IP address was not resolving.

I cannot get root to rsh no matter what I do, even if I put "+" in /.rhosts file.

How do I get root to rsh?

Last edited by etc; 05-27-2005 at 12:26 PM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

RSH

Hi All, Whenever we are giving rsh localhost date , it give an error "Permission Denied". RHEL 6 is the version, and we're logging in as "root". in .rhosts file I have mentioned all the details, and enabled rsh,rsync,rexec,rlogin in /etc/xinetd.d/ file Please suggest. Reg, Muzaffar (7 Replies)
Discussion started by: muzaffar.k
7 Replies

2. SCO

Authentication problems with Active Directory/Samba/Winbind/Pam

Hi all. I'm having real trouble authenticating users against active directory for my SCO UnixWare 7.1.4 box running samba 3.0.24 (installed via Maintenance pack 4). I can list AD users/groups (after overcoming several hiccups) with wbinfo -g / wbinfo -u. I can use id to get a view an ad user ie:... (0 Replies)
Discussion started by: silk600
0 Replies

3. Red Hat

Rsh

Hi, I issue : rsh ****.16.0.151 -l root ls -l /tmp and I receive : connect to address ***.16.0.151: Connection refused Trying krb4 rsh... In hosts file of remote (***.16.0.151) I have : ***.16.0.202 root Can you help me ? Thank you. (0 Replies)
Discussion started by: big123456
0 Replies

4. Solaris

rsh

How to enable rsh in solaris (7 Replies)
Discussion started by: durgaprasadr13
7 Replies

5. AIX

Rsh

How to configure rsh for different users in aix? (4 Replies)
Discussion started by: vjm
4 Replies

6. Solaris

Problems with rsh command

Hello guys, I have a script in a Linux server, from where I go to 3 Sun servers and run process. Now i have done an upgrade and increase 1 Sun server more, now i need to run the shell in the Linux Server (into the shell is rsh command), but when i try to do ir with the new Sun server, i hace the... (3 Replies)
Discussion started by: lestat_ecuador
3 Replies

7. AIX

Problems using rsh

Hi, I have a server which I've configured to allow an rsh trust from a csm server. However, of the 3 vlans on the target server, I can only rsh to one of them without being prompted for the password. On lpar1 $ ifconfig -a en2:... (1 Reply)
Discussion started by: m223464
1 Replies

8. UNIX for Advanced & Expert Users

where is rsh

Hi, when a user use rsh command (or any other) , where is the executable used by him ? Many thanks in advance. (1 Reply)
Discussion started by: big123456
1 Replies

9. UNIX for Dummies Questions & Answers

problems with rsh

Hello Everybody, I have a set of four machines. When i try to rsh between them i get errors like 'no route to host' and 'conection refused'. What do i need to do to rectify this problem..... i can ssh between the nodes ok but only if i supply a password. Here is the output from my screen: ... (1 Reply)
Discussion started by: rkap
1 Replies

10. Shell Programming and Scripting

help with rsh

I am trying to run a Perl script using rsh. I need to be able to capture the return code value, so the calling script can handle failures properly. I cannot modify the Perl script I need to run because we use it for all of our servers. Does anyone have a suggestion? (1 Reply)
Discussion started by: kscase
1 Replies
Login or Register to Ask a Question