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. |
why use rsh instead of ssh
- quick guide to ssh on solaris - using ssh passwordless I hope it helps you. good luck |
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....!!!! |
Ok,
I'm sorry I don't know how to help you with RSH. |
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."
|
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:
|
Quote:
Code:
yum -y install rsh rsh-server Code:
chkconfig rsh on Code:
auth sufficient pam_rhosts_auth.so promiscuous 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 |
Hi Custangro,
thanks a lot...Its worked for me....!!! Thanks, Tushar |
All times are GMT -5. The time now is 01:41 PM. |