remsh working one way

Thread Tools Search this Thread
Operating Systems Solaris remsh working one way
# 1  
Old 10-15-2007
Question remsh working one way

host Solaris 5.9 E250 host-name: sunsrv1
remote Solaris 5.8 Netra 250 host_name: sspfs_svr
i am able to remsh (or rsh)from remote to host
like ;
$ remsh sunsrv1 uname -n

but opposite way not possible;

# remsh sspfs_svr ls
sspfs_svr: Connection refused


# rsh -l 
HTML Code:
-n sspfs_svr ls sspfs_svr: Connection refused

OR this way: direct from root itself

# rsh -l cpacaci sspfs_svr ls
sspfs_svr: Connection refused

I configured the following files ;

/etc/passwd (identical users; both in host and remote)

any advice ? Thanks Smilie
# 2  
Old 10-16-2007
"Connection refused" means that inetd isn't listening for remsh. Check /etc/inetd.conf and make sure that the remsh/rsh line isn't hashed out (marked with a # at the start of the line). On Solaris 10, use inetadm to check the same thing (can't tell you exactly which options and such, though).
# 3  
Old 10-16-2007
Question remsh

following problematic Netra 240 server cannot access remotely, even though ping telnet etc. is working. Here is the inetd.conf status;

# cat /etc/inetd.conf |grep rsh
 shell  stream  tcp     nowait  root    /usr/sbin/in.rshd       in.rshd
 shell  stream  tcp6    nowait  root    /usr/sbin/in.rshd       in.rshd
# uname -a
SunOS sspfs_svr 5.8 Generic_117000-01 sun4u sparc SUNW,Netra-240

seems to be working ? but still no remsh or rsh or rlogin possible what other reason can effect this situation ?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting


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/ Method2 (Local execution): remoteserver :/home#sh In method 2, I can succesfully set timestamp with... (6 Replies)
Discussion started by: mrcrowley
6 Replies

2. Shell Programming and Scripting


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/; export... (3 Replies)
Discussion started by: AB10
3 Replies

3. 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

4. Shell Programming and Scripting

remsh variables

Hi, I have script. #!/bin/sh -x CD=masterservice remsh -l root './export $CD > test.output' rcp root@ But I receive the following error. + remsh -l root ./export $CD > test.output To make it work, I remove the ' signs.... (1 Reply)
Discussion started by: mr_andrew
1 Replies

5. UNIX for Dummies Questions & Answers

remsh from HP-UX to Solaris

Hi, I have encountered a problem when I try to issue a remsh command to a remote system (Solaris). I have created the .rhost file in the home directory on the remote system and added the hostname and user. "cat .rhosts root" But when I issue the command from the... (5 Replies)
Discussion started by: mr_andrew
5 Replies

6. 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 (7 Replies)
Discussion started by: kenshinhimura
7 Replies

7. Shell Programming and Scripting

how to use remsh to duplicate all...

hi , Any idea how to use remsh to duplicate whatsoever ( / ) from host1 to host2 across network with root? Regards, (0 Replies)
Discussion started by: rauphelhunter
0 Replies

8. 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 : (2 Replies)
Discussion started by: sabyasm
2 Replies

9. UNIX for Dummies Questions & Answers


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

10. UNIX for Dummies Questions & Answers

remsh and nohup

I'm trying to nohup a job that executes a remote shell on another host but it breaks as soon as I launch it, and I get the following back to my terminal. + Stopped (tty input) nohup remsh target_host -l user "ls /proj" This is the command I'm running. nohup remsh target_host -l user "ls... (2 Replies)
Discussion started by: tavaresd
2 Replies
Login or Register to Ask a Question