LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 05-29-2012, 07:32 AM   #1
tushar8146
LQ Newbie
 
Registered: May 2012
Location: Pune, India
Distribution: Redhat Linux
Posts: 3

Rep: Reputation: Disabled
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.
 
Old 05-29-2012, 09:07 AM   #2
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
why use rsh instead of ssh
- quick guide to ssh on solaris
- using ssh passwordless

I hope it helps you.

good luck
 
Old 05-30-2012, 01:26 AM   #3
tushar8146
LQ Newbie
 
Registered: May 2012
Location: Pune, India
Distribution: Redhat Linux
Posts: 3

Original Poster
Rep: Reputation: Disabled
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....!!!!
 
Old 05-30-2012, 01:50 AM   #4
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Ok,

I'm sorry I don't know how to help you with RSH.
 
Old 05-30-2012, 07:55 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 18,043

Rep: Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660
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."
 
Old 06-01-2012, 02:04 PM   #6
richleonhardt
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Rep: Reputation: 1
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 View Post
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.
 
Old 06-12-2012, 07:36 PM   #7
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,978
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by tushar8146 View Post
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
 
1 members found this post helpful.
Old 06-13-2012, 05:34 AM   #8
tushar8146
LQ Newbie
 
Registered: May 2012
Location: Pune, India
Distribution: Redhat Linux
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thumbs up

Hi Custangro,

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

Thanks,
Tushar
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] rsh and rlogin works but rcp doesn't work on my RHEL4 machine subbarai Linux - Newbie 5 09-29-2010 08:18 AM
rsh and rlogin not wotking rehan999 Linux - Software 1 05-14-2008 12:13 AM
Rsh , Rlogin Without password shan_nathan Linux - Security 8 08-18-2007 01:21 AM
LTSP rlogin and rsh problem okkadu Linux - Server 2 05-16-2007 09:24 AM
rsh and rlogin on Linux to HP-UX sammathew Linux - Networking 1 09-09-2003 04:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 05:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration