LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Not able to do passworldless rsh/rlogin to redhat linux machine (https://www.linuxquestions.org/questions/red-hat-31/not-able-to-do-passworldless-rsh-rlogin-to-redhat-linux-machine-947373/)

tushar8146 05-29-2012 07:32 AM

Not able to do passworldless rsh/rlogin to redhat linux machine
 
Hi,

I am trying to connect to one redhat machine (rhel 5.5) from solaris box (solaris 10) using rsh. I have one strange problem while establishing remote connection amongst these two machines.
I am able to connect to redhat machine in single attempt everytime using ssh from solaris box but it takes two attempts to connect to same machine using rsh.
seems like some security settings not permitting me to login to linux machine from solaris.

Also,

There is one user account "user" on redhat machine.


sol10# rsh rhel5 -l user ls
Permission denied

where,
sol10 = solaris machine's hostname
rhel5 = redhat machine's hostname


I am getting permission denied error while executing above command.


Thanks in advance.

lithos 05-29-2012 09:07 AM

why use rsh instead of ssh
- quick guide to ssh on solaris
- using ssh passwordless

I hope it helps you.

good luck

tushar8146 05-30-2012 01:26 AM

Hi Lithos,

Thanks for your guidance.

Actually, I have already worked on ssh passwordless authentication, and now it's rsh's turn.
It's a project specific requirement and i need passwordless rsh for testing purpose.

Hope you understand the concern. ;)

Thanks in advance....!!!!

lithos 05-30-2012 01:50 AM

Ok,

I'm sorry I don't know how to help you with RSH.

chrism01 05-30-2012 07:55 PM

Read this http://linux.die.net/man/8/rshd, particularly "which uses the file /etc/hosts.equiv and the .rhosts file found in the user's home directory."

richleonhardt 06-01-2012 02:04 PM

rsh troubleshooting
 
Try rsh -d (turn on debugging)
Also you need a /.rhosts file with the name of the "allowed" servers as I remember it.

Also since you got ssh working run ssh -vvv <server name> and capture that screen so you can see how authentication is
done on your servers.

HTH
Rick




Quote:

Originally Posted by tushar8146 (Post 4690225)
Hi,

I am trying to connect to one redhat machine (rhel 5.5) from solaris box (solaris 10) using rsh. I have one strange problem while establishing remote connection amongst these two machines.
I am able to connect to redhat machine in single attempt everytime using ssh from solaris box but it takes two attempts to connect to same machine using rsh.
seems like some security settings not permitting me to login to linux machine from solaris.

Also,

There is one user account "user" on redhat machine.


sol10# rsh rhel5 -l user ls
Permission denied

where,
sol10 = solaris machine's hostname
rhel5 = redhat machine's hostname


I am getting permission denied error while executing above command.


Thanks in advance.


custangro 06-12-2012 07:36 PM

Quote:

Originally Posted by tushar8146 (Post 4690225)
Hi,

I am trying to connect to one redhat machine (rhel 5.5) from solaris box (solaris 10) using rsh. I have one strange problem while establishing remote connection amongst these two machines.
I am able to connect to redhat machine in single attempt everytime using ssh from solaris box but it takes two attempts to connect to same machine using rsh.
seems like some security settings not permitting me to login to linux machine from solaris.

Also,

There is one user account "user" on redhat machine.


sol10# rsh rhel5 -l user ls
Permission denied

where,
sol10 = solaris machine's hostname
rhel5 = redhat machine's hostname


I am getting permission denied error while executing above command.


Thanks in advance.

On the RHEL box install the rsh service
Code:

yum -y install rsh rsh-server
Then make sure it's on

Code:

chkconfig rsh on
Now edit the PAM files (/etc/pam.d/rsh and /etc/pam.d/rlogin) and add the following entry
Code:

auth      sufficient    pam_rhosts_auth.so promiscuous
Add rsh and rlogin to the /etc/securetty file

Make sure the hostname exsists in the ~/.rhosts file for the user you want to RSH as.

ALSO, you may have to disable the firewall (or open the ports)

Code:

iptables --flush

tushar8146 06-13-2012 05:34 AM

Hi Custangro,

thanks a lot...Its worked for me....!!!

Thanks,
Tushar


All times are GMT -5. The time now is 01:41 PM.