GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Doing remsh from SUN machine to HP machine gives ...
Operating System - HP-UX
1847005
Members
4360
Online
110257
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2003 12:47 PM
01-20-2003 12:47 PM
Doing remsh from SUN machine to HP machine gives protocol error?
when I do remsh from sun machine say sun.123.com to HP machine say hp.123.com it gives protocol error.
Actually when I run following command from sun.123.com
#remsh hp.123.com ls
it gives error as below :
"Protocol error hp.123.com connection closed."
When I checked syslog.log file on HP.123.com I gor following entry in it.
" hp pprshd2.2: gethostbyaddr: sun.123.com != 123.456.789.234"
One more interesting thing is that I am able to do remsh sometimes. I mean if I run remsh 4-5 times it fails 2-3 times. I am not able to figure out why this happens.
FYI, the sun machine has been insytalled ssh2.2 on it while on HP nothing has been installed. I installed secure shell on HP machine, however the probelm remianed same.
Please help me with this.
Your help is highly appreciated in advance.
Thanks,
-pap
Actually when I run following command from sun.123.com
#remsh hp.123.com ls
it gives error as below :
"Protocol error hp.123.com connection closed."
When I checked syslog.log file on HP.123.com I gor following entry in it.
" hp pprshd2.2: gethostbyaddr: sun.123.com != 123.456.789.234"
One more interesting thing is that I am able to do remsh sometimes. I mean if I run remsh 4-5 times it fails 2-3 times. I am not able to figure out why this happens.
FYI, the sun machine has been insytalled ssh2.2 on it while on HP nothing has been installed. I installed secure shell on HP machine, however the probelm remianed same.
Please help me with this.
Your help is highly appreciated in advance.
Thanks,
-pap
"Winners don't do different things , they do things differently"
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2003 01:20 PM
01-20-2003 01:20 PM
Re: Doing remsh from SUN machine to HP machine gives protocol error?
Check the following:
Do you have more than one IP attached with HP hostname ?
if yes, Can you ping both IP's from SUN ?
Try using IP address instead of host name and see whether it works.
Good luck,
Pramod
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2003 11:06 AM
01-22-2003 11:06 AM
Re: Doing remsh from SUN machine to HP machine gives protocol error?
It would appear that remsh on the hp system is doing what is called a "reverse lookup" on the IP address. That is, it is taking the IP address it knows was used for the remsh connection (returned either by accept() or getpeername()), calling gethostbyaddr to map that back to a hostname, and then comparing the result to the hostname the Sun box claimed was his when he connected.
It would seem the two do not match consistently.
That the problem is inconsistent implies that one or more of your sources of hostname/IP mappings is configured differently than the others. Perhaps you have a /etc/hosts file that is out of date, but only being queried when the DNS server(s) cannot be reached. Examination of the "hosts" entry in /etc/nsswitch.conf would tell you what sources of hostname/IP resolution are being used by your system. If there is no /etc/nsswitch.conf file, but there is a /etc/resolv.conf file, the system will use DNS.
I would suggest running nslookup or perhaps dig against the IP address of the Sun box several times and make sure that it always gets the same answer (or not).
It would seem the two do not match consistently.
That the problem is inconsistent implies that one or more of your sources of hostname/IP mappings is configured differently than the others. Perhaps you have a /etc/hosts file that is out of date, but only being queried when the DNS server(s) cannot be reached. Examination of the "hosts" entry in /etc/nsswitch.conf would tell you what sources of hostname/IP resolution are being used by your system. If there is no /etc/nsswitch.conf file, but there is a /etc/resolv.conf file, the system will use DNS.
I would suggest running nslookup or perhaps dig against the IP address of the Sun box several times and make sure that it always gets the same answer (or not).
there is no rest for the wicked yet the virtuous have no pillows
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2003 11:26 AM
01-22-2003 11:26 AM
Re: Doing remsh from SUN machine to HP machine gives protocol error?
If you have more than one DNS server, make sure they all are resolving the host name(s) correctly.
HTH
Marty
HTH
Marty
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP