Operating System - HP-UX
1748198 Members
2571 Online
108759 Solutions
New Discussion юеВ

Re: HP-UX 11.00 rsh command output not being returned

 
SOLVED
Go to solution
Vanessa Mason
Occasional Advisor

HP-UX 11.00 rsh command output not being returned

I am working on a HP-UX 11.00 server. when i issued the following command rsh hostname "command", the command output is not being returned to my screen. there are not erorrs or messages to indicate why. i have setup /etc/hosts.equiv and .rhosts in my home directory. I verified that lines are uncommented in /etc/inetd.conf. Still not working. What am i missing?
19 REPLIES 19

Re: HP-UX 11.00 rsh command output not being returned

rsh is not the command you think it is.

On HP-UX rsh is the "restricted POSIX shell" - not remote shell - which is something completely different.

Try:

remsh hostname "command"

you should meet with more success.

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Vanessa Mason
Occasional Advisor

Re: HP-UX 11.00 rsh command output not being returned

i just tried using remsh with same results -command output not be returned to my display.
TTr
Honored Contributor

Re: HP-UX 11.00 rsh command output not being returned

What exactly is returned to your command?

Have you setup the .rhosts files on the remote server?
Does the remote server run the remshd (rshd) service?
Do you have network access to the remote server?
Steven Schweda
Honored Contributor

Re: HP-UX 11.00 rsh command output not being returned

> What am i missing?

man rsh
man remsh

And a transcript showing the actual commands
you used with their actual output (instead of
a vague description).
TTr
Honored Contributor

Re: HP-UX 11.00 rsh command output not being returned

> i have setup /etc/hosts.equiv and .rhosts in my home directory. I verified that lines are uncommented in /etc/inetd.conf.

Did you do all these on the remote server? Did you reload the /etc/inted.conf after uncommenting the remsh/rsh line? Any errors on the syslog of the remote server? What kind of server is the remote server?
Matti_Kurkela
Honored Contributor

Re: HP-UX 11.00 rsh command output not being returned

Your connection attempt may be hitting a network firewall. Often firewalls are configured to silently eat non-approved traffic instead of responding with a "connection refused" message.

It also might be a hostname resolution problem.

After entering the remsh/rsh command, wait for about 3 minutes. You should eventually get an error message. If it's "Connection timed out", start looking for firewalls.

If the message is something along the lines of "Host not found", start checking your hostname resolution: /etc/nsswitch.conf, /etc/resolv.conf and /etc/hosts.

If the connection does not seem to time out at all, and your network administrator is extra clever, you may have been redirected into a tar-pit: a decoy server accepts the connection with a correct response, but sends it out as slowly as possible, pretending to be totally overloaded. The purpose of this is to detect network scan attempts and make scanning more time-consuming.

MK
MK
Vanessa Mason
Occasional Advisor

Re: HP-UX 11.00 rsh command output not being returned

i am doing:

rsh hostname "echo ok" i should get an ok back but i only get the prompt. i tried remsh with the same results.

1)I have .rhosts set up in my home directly which is nfs mounted.

2)The remote server is running remshd.

3) I do have network access to the remote server.

4)I did verify the changes on remote server and inetd was restarted.

5) There are no errors in the syslog

6) Server is a J5000 running 11.00.
Hakki Aydin Ucar
Honored Contributor

Re: HP-UX 11.00 rsh command output not being returned

did you try like this full path :

remsh hostname "/usr/bin/echo"
Vanessa Mason
Occasional Advisor

Re: HP-UX 11.00 rsh command output not being returned

Still not getting anything back. checked syslog and message files (no errors).

To make sure local server is working properly, did remsh to an 11i server which returned ok.