The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > 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 07:19 AM
ftp issue ravi raj kumar Shell Programming and Scripting 5 02-06-2008 08:24 AM
awk issue on AIX ranj@chn Shell Programming and Scripting 1 07-04-2007 07:22 AM
FTP issue u263066 Shell Programming and Scripting 1 07-28-2006 07:18 AM
FTP Issue, Help please moe2266 UNIX for Dummies Questions & Answers 0 01-17-2006 10:54 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-29-2007
sriram.s sriram.s is offline
Registered User
  
 

Join Date: Mar 2005
Location: india
Posts: 41
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.
  #2 (permalink)  
Old 06-29-2007
kamitsin's Avatar
kamitsin kamitsin is offline
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>

  #3 (permalink)  
Old 06-29-2007
porter porter is offline Forum Advisor  
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?
  #4 (permalink)  
Old 07-01-2007
kapilraj kapilraj is offline
Registered User
  
 

Join Date: Dec 2006
Location: Maryland
Posts: 162
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
  #5 (permalink)  
Old 07-01-2007
Neo's Avatar
Neo Neo is offline Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,815
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.
  #6 (permalink)  
Old 07-03-2007
kah00na kah00na is offline
Registered User
  
 

Join Date: Jul 2007
Posts: 79
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:12 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0