remsh problem !


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting remsh problem !
# 1  
Old 03-27-2012
remsh problem !

hi all ,
i am using remsh utility from a host to another , i did create an .rhosts in it the name of the second server and the user to use in it , then i changed permission to 600 .. it is still asking for password and i am using this for no password between 2 trusted servers we got also this message arrive when i was trying to test using uptime command but it is still giving me a
Code:
rsh asprod04 uptime
permission denied

does anyone can help me wth this problem

regards;
semaan

Last edited by vbe; 03-27-2012 at 08:31 AM.. Reason: typos
# 2  
Old 03-27-2012
What are your servers (OS - version...)?
what error do get when trying only to remsh?
# 3  
Old 03-27-2012
os : solaris 5.10 ... when i remesh i do get to enter password and that is what i am trying to avoid ...
when i remesh with any commaand it gives me permission denied
Code:
 remsh biltst ls 
permission denied

why even i created what i mentioned in .rhosts and right permission
# 4  
Old 03-27-2012
Quote:
i did create an .rhosts in it the name of the second server and the user to use in it ,
But, on which computer?
I'm assuming that your remsh command works and that you can login when you provide the correct username and password.

The .rhosts file is used to give permissions to other users on other computers to have access to your account. It can also be used to give local users permissions.

So, if you want to remsh or rlogin from account1 on server1 to account2 on server2 , the .rhosts file goes in the home directory of account2 on server2 and contains a line "server1 account1". On server2 the command nslookup server1 must return the same server name as is in the .rhosts file (i.e. a reverse DNS lookup).
These 2 Users Gave Thanks to methyl For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Remsh

Hello All, I am on HP-UX. Problem is that my remote script behaves different depending on execution method. Method1 (Remote execution): remsh remoteserver /home/myscript.sh Method2 (Local execution): remoteserver :/home#sh myscript.sh In method 2, I can succesfully set timestamp with... (6 Replies)
Discussion started by: mrcrowley
6 Replies

2. UNIX for Advanced & Expert Users

Remsh command

Hi Can any 1 tell me how to use REMSH command with example actually i wanted to run the following command on different severs thru script "df -k .| tail -1 | tr -s ' ' ' ' | cut -d ' ' -f5" :) please reply ASAP.:) (3 Replies)
Discussion started by: maddy_07
3 Replies

3. Shell Programming and Scripting

remsh problem with single quote (')

Hi All, Im executing the shell script remotely. here is one statement from that: remsh $rHost -l $rUser "java -jar $TARGET/toolkit/apps/bin/toolkit-stm.jar network -m -d1 /abmusr06/abm/users/dywrk01/$package/DYP_Execution/data/configuration/network_aus/network -u2... (1 Reply)
Discussion started by: AB10
1 Replies

4. Shell Programming and Scripting

Remsh

Hi All, Im using remsh to execute shell script on remote server. And this script gets called from another AIX server. My code is: remsh $rHost -l $rUser -n "export JAVA_HOME=/usr/java6_64_SR7; export ORACLE_HOME=/oravl01/oracle/11.1.0.7; export... (3 Replies)
Discussion started by: AB10
3 Replies

5. UNIX for Dummies Questions & Answers

remsh options

Hi All, I want to know all the options that are used for command remsh. And also the prerequisites like entries in .rhosts file. Can anybody share the link or document? thanks. (1 Reply)
Discussion started by: AB10
1 Replies

6. UNIX for Advanced & Expert Users

How To Grep Via REMSH

Well I didn't think this would be so complicated when I started it but, well, here we are. :( I'm trying to REMSH to other servers and run a grep command. Now this works just fine until the item I'm grepping for has whitespaces in it and then UNIX gets stubborn. Normally one would grep for a... (1 Reply)
Discussion started by: Korn0474
1 Replies

7. HP-UX

remsh + HPUX

Hi, I am trying to remsh from a HPUX to another unix server What is happening is I cant run commands on the other server ie I can remsh <remoteserver> -l <remotelogin> but I cant remsh <remoteserver> -l <remotelogin> -n pwd getting error message rshd: 0826-826 The host name for... (3 Replies)
Discussion started by: belfastbelle
3 Replies

8. HP-UX

change ip via remsh

guys,wanted to ask how tochange IP via remote. remsh is fine w/ me. but when chaging the ip it doesnt work in remsh.could you please help. # remsh server1 -l root uname -a HP-UX server1 B.11.23 U ia64 0618444750 unlimited-user license # # remsh server1 -l root ifconfig lan1 10.131.3.95... (7 Replies)
Discussion started by: kenshinhimura
7 Replies

9. UNIX for Advanced & Expert Users

remsh problem

Hi All, We have 2 unix boxes HP UX. From Box1 we need to run a script on Box2 using remsh. The job at Box2 exits with status 0 on successful completion & 1 if fails. But even if the scrips fails (exits with return status 1) at Box2, the $? get the value 0. script at Box2 : remote_script.sh... (2 Replies)
Discussion started by: sabyasm
2 Replies

10. UNIX for Dummies Questions & Answers

remsh

i m try to do remsh i need to know what are the step to define the user and password i try .rhosts it give me operator:/export/home/operator>remsh billmed ps -ef permission denied just for testing (3 Replies)
Discussion started by: kazanoova2
3 Replies
Login or Register to Ask a Question