The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Unix Arithmatic operation issue , datatype issue thambi Shell Programming and Scripting 23 02-19-2008 04:19 AM
ftp issue ravi raj kumar Shell Programming and Scripting 5 02-06-2008 05:24 AM
awk issue on AIX ranj@chn Shell Programming and Scripting 1 07-04-2007 03:22 AM
FTP issue u263066 Shell Programming and Scripting 1 07-28-2006 03:18 AM
FTP Issue, Help please moe2266 UNIX for Dummies Questions & Answers 0 01-17-2006 07:54 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 06-29-2007
Registered User
 

Join Date: Mar 2005
Location: india
Posts: 40
Thumbs up Issue with rsh

Hi frnz,


I am facing an odd issue with rsh.

I am trying to rsh to a destination workstation from my workstation.
The .rhosts file in the destination is having my hostname.
but when i do rsh i am prompted for the password every time.
I have added my hostname in host.equiv file also in the destination.
Could any body tell me what i need to look into.
Reply With Quote
Forum Sponsor
  #2  
Old 06-29-2007
kamitsin's Avatar
Registered User
 

Join Date: Nov 2006
Location: /dev/null
Posts: 177
Quote:
The .rhosts file in the destination is having my hostname.
.rhosts file should contain,

Code:
<hostname> <username>
Reply With Quote
  #3  
Old 06-29-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
When you refer to .rhosts do you mean $HOME/.rhosts?

Is the hostname resolveable on the target machine?
Reply With Quote
  #4  
Old 07-01-2007
Registered User
 

Join Date: Dec 2006
Location: Maryland
Posts: 144
In such cases I go with this practice. If I have to rsh w/o a password from nodeA to nodeB,

a) Login to nodeA

traceroute nodeB

It will say "Source should be xx.xx.xx.xx" make a note of that ip address

b) Logon to nodeA

host xx.xx.xx.xx

if it returns a host name, then use that hostname in the .rhosts file of nodeB. If it does not return a hostname, then you will need to either enter the ip address OR add a hosts entry either through a hosts file, DNS or NIS.

You need not enter the username in .rhosts to make it work , just the host name should be enough.

Regards,

Kaps
Reply With Quote
  #5  
Old 07-01-2007
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,493
Quote:
Originally Posted by sriram.s View Post
Hi frnz,


I am facing an odd issue with rsh.

I am trying to rsh to a destination workstation from my workstation.
The .rhosts file in the destination is having my hostname.
but when i do rsh i am prompted for the password every time.
I have added my hostname in host.equiv file also in the destination.
Could any body tell me what i need to look into.
Please check the permissions (and ownership) of your .rhosts and host.equiv file and post back.
Reply With Quote
  #6  
Old 07-03-2007
Registered User
 

Join Date: Jul 2007
Posts: 57
For security purposes, you should look into using ssh instead of rsh. Anyone could log on to your network and spoof the name of the "trusted" host and then have access to your system without being prompted for a password. We just had an audit done against us and we were dinged for this. No more rsh for us.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 06:36 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0