LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices


Reply
  Search this Thread
Old 12-30-2005, 12:19 AM   #1
amitkanodia
LQ Newbie
 
Registered: Jun 2005
Location: jaipur (india)
Distribution: RedHat Linux AS4
Posts: 6

Rep: Reputation: 0
Question How to configure rsh on AIX?


Hi there,

I am running a shell script on AIX machine (AIX-1). In the script I have to execute another shell script on another AIX machine (AIX -2).

I had tried using rsh command. But it says permission denied.

e.g.

#script1
df
rsh AIX-2 df

Please explain how to configure the rsh, or is there any other way to complete the above task.

Thanks & Regards

Amit Kanodia
 
Old 12-30-2005, 04:41 AM   #2
iainr
Member
 
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Rep: Reputation: 30
Hi Amit,

First, I should mention the obligitary comment that you should use ssh rather than rsh (OpenSSH, for example, ships with AIX, I think on the bonus or linux tools CD).

However, if you want to use rsh, configuring it on AIX is exactly the same as on every other platform.

On the host that you want to rsh to create a .rhosts file in the user's home directory, owned by the user with permission 600. Put in it

Code:
host user
where "host" is the host you are coming from and "user" is the user account you are coming from.

There are other options and files, but this will work, so check out the man page if you want more info.
 
Old 12-31-2005, 11:10 AM   #3
eddiebaby1023
Member
 
Registered: May 2005
Posts: 378

Rep: Reputation: 33
A neat trick with rsh is that you can create a symlink to it naming the host; if rsh is invoked with a name other than rsh it assumes that to be the name of the host you wish to connect to.
Code:
ln -s /usr/bin/rsh ~/bin/marvin
marvin uname -a
will run the uname command on the host called marvin. Saves 4 characters of typing, which has to be A Good Thing.
 
  


Reply



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
how to setup rsh or configure ssh properly cheeku Linux - Software 5 03-30-2006 07:47 AM
RSH: remuser too long error when rsh is executed from IIS dev33445 Programming 0 08-29-2005 09:34 AM
rsh issue in AIX boxes oosii AIX 2 07-21-2005 07:34 AM
System hangs in update of AIX from 4.3.3 to AIX 5.2 jmurray67 AIX 2 07-25-2004 08:25 PM
please help with rsh slice4e Linux - General 5 08-19-2003 12:49 PM

LinuxQuestions.org > Forums > Other *NIX Forums > AIX

All times are GMT -5. The time now is 08:00 AM.

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