1833849 Members
2628 Online
110063 Solutions
New Discussion

remsh error

 
BONNAFOUS Jean Marc
Trusted Contributor

remsh error

Hello,
Since some days, i have a problem with a HP-UX host (V 10.20). I can't connect on it from any remote host, with remsh command. The error is "remshd: connect: error 0" and error in syslog is: "connect on second port: connection timeout". All others commands work (rcp, rlogin, telnet,...) only remsh is bad and only from remote host. The command work when i use it from the local host.

Thanks for you help.
JMB.
Si vous ne faites jamais de bétises, c'est que vous ne faites rien de difficile. Et ça c'est une grosse bétise.
6 REPLIES 6
K.Vijayaragavan.
Respected Contributor

Re: remsh error

Port " 512/tcp" for the server "exec" must be open in firewall

Use command "/usr/sbin/rpcinfo -n 512 -u exec" ro find if you can reach 512/tcp port of remote server.
"Let us fine tune our knowledge together"
Massimo Bianchi
Honored Contributor

Re: remsh error

Hi,
as suggested have a talk with your network gui and find if they have implemented ab??ny security policy.

HTH,
Massimo
Michael Steele_2
Honored Contributor

Re: remsh error

A) Fom the server side where your originating the command, when this error occurs can you connect to the destination host OK?

nslookup hostname
nslookup ip

B) What's in nsswitch.conf?

hosts: files [NOTFOUND=continue] dns

C) From the client side:

What's in your /etc/nsswitch.conf file for both passwd and hosts? For example:

passwd: nis files
hosts: files [NOTFOUND=continue] dns

d) Also from the client is logging enable? (* logging always adds overhead. *) Check syslog.log.

inetd -l

E) Do you have nfs mount file systems? (* NFS and remshd both use RPC services. *) If so see if you can recreate by copying a large file into nfs and remsh at the same time.

prealloc /tmp/50meg_file 50000000 (* make a 50 mb file *)
Support Fatherhood - Stop Family Law
BONNAFOUS Jean Marc
Trusted Contributor

Re: remsh error

I have found the problem: the route between the local router and the remote router has been deleted.
But why others commands than remsh, work without this route?

Thanks.
JMB
Si vous ne faites jamais de bétises, c'est que vous ne faites rien de difficile. Et ça c'est une grosse bétise.
Steven E. Protter
Exalted Contributor

Re: remsh error

These Berkley utilities will work on machines on the same subnet without problem.

They should work if so long as the machines can ping each other and are at a run level that allows networking.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
K.Vijayaragavan.
Respected Contributor

Re: remsh error

May be because of the entries in /var/adm/inetd.sec.
"Let us fine tune our knowledge together"