- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: problem conecting to remshd from linux box
Categories
Company
Local Language
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
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
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
11-16-2004 05:44 AM
11-16-2004 05:44 AM
I'm getting an error when conecting from a linux box to the remshd server on my hp-ux server. The strange thing is that i'm able to login remotely to the server from the same linux box. In other words if I execute: "rsh hp-server" i get logged in, but if I execute "rsh hp-server date" i get:
poll: protocol failure in circuit setup
I have an aparently correct .rhosts in the users acount at the server.
Can anyone please help me with this?
The hp server is an hp 9000/803/D220 model with HP-UX B11.11
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2004 05:55 AM
11-16-2004 05:55 AM
Re: problem conecting to remshd from linux box
One thing to check is to make sure that each host correctly resolves the hostname and IP address of both hosts. I think you can get that error when there is a resolution problem.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2004 06:09 AM
11-16-2004 06:09 AM
Re: problem conecting to remshd from linux box
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2004 06:34 AM
11-16-2004 06:34 AM
Re: problem conecting to remshd from linux box
Files to check
.rhostrs
/etc/hosts.equiv # can be used to bock access
/etc/nsswitch.conf # decides dns versus files
/etc/hosts # see prior line
Good way to grab data
tail -f /var/adm/syslog/syslog.log
Then try and connect from Linux.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2004 06:56 AM
11-16-2004 06:56 AM
Re: problem conecting to remshd from linux box
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2004 01:00 PM
11-16-2004 01:00 PM
Re: problem conecting to remshd from linux box
rsh server (remshd on hp-ux) opens inbound connection to pass stderr and it is connecting back to the client on a random port below 1023. The client sends port number to the server when it initially opens the connection.
The reason why it works when you run rsh without command is that it uses rlogind on the hp-ux end (which doesn't open inbound connection like remshd does).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2004 03:00 PM
11-16-2004 03:00 PM
Re: problem conecting to remshd from linux box
Since you are able to logon using 'rsh', I don't believe you have any issues with name resolution.
So, I would check the services on HP system mainly. Look to see if the services 'shell, login and exec' are enabled in /etc/services and /etc/inetd.conf and are not restricted for Linux server in /var/adm/inetd.sec. Similarly look for these services (/etc/services ?) on the Linux server as well to see if they are properly resolving the services to port numbers.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2004 12:06 AM
11-17-2004 12:06 AM
Re: problem conecting to remshd from linux box
I just confirmed that there is no firewall running on the linux box. I don't know if it's possible to block incomming conections by other means, but that's hardly the case.
On the Hp system, the three services are enabled in the /etc/services file:
exec 512/tcp # remote execution, passwd required
login 513/tcp # remote login
who 513/udp whod # remote who and uptime
shell 514/tcp cmd # remote command, no passwd used
And they are also enabled for inetd:
login stream tcp nowait root /usr/lbin/rlogind rlogind
shell stream tcp nowait root /usr/lbin/remshd remshd
exec stream tcp nowait root /usr/lbin/rexecd rexecd
Also, the hp system does not use restriction for inetd.
A strange thing i have noticed is that on the hp system, is detected a conection from the linux box. The output of netstat just after the rsh attempt is something like this:
tcp 0 0 HPSERVER.shell LINUXBOX.1023 TIME_WAIT
Any help would be greatly apreciated.
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2004 02:21 AM
11-17-2004 02:21 AM
Re: problem conecting to remshd from linux box
tcp 0 0 HPSERVER.shell LINUXBOX.1023 TIME_WAIT
Do not worry about the above. It is in TIME_WAIT condition as a result of your previous 'rsh' command. You may need to do little bit more debugging.
1. If you have another Linux box, try doing 'rsh' to it and see if it works.
2. If you have another HP system, try doing 'remsh' from one HP box to other.
If both the above are working, then I wonder about 'rsh' implementation differences between HP and Linux. May HP is not able to understand what Linux is saying. Theoritically, they should be the same as they are supposed to use the same Berkeley suite.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2004 03:00 AM
11-17-2004 03:00 AM
Re: problem conecting to remshd from linux box
Unfortunatly we don't have another Hp system. So i couldn't test conecting from a similar machine. I tried to connect from all the boxes in the lan, included one sun system. All the linuxes responded with the same message (poll: protocol failure in circuit setup) but the sun box didn't print any message. It simply returned inmediatly.
I just tried to connect with remsh from the hp server to itself and it did not succeed. So i think that it's inquestionable that the problem is on the serverside. The message i received was:
$ remsh HPSERVER date
rcmd: recv: Connection reset by peer
I really haven't any clue of what might be causing this. Could any one please give me some more advices?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2004 04:08 AM
11-17-2004 04:08 AM
Re: problem conecting to remshd from linux box
Use 'lsof' to determine what is exactly running at port 514 (and 512 and 513)
These should be the permissions on remshd.
-r-xr--r-- 1 bin bin 36864 Sep 9 2002 /usr/lbin/remshd
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2004 05:39 AM
11-17-2004 05:39 AM
Re: problem conecting to remshd from linux box
Thanks for your interest.
The permissions of remshd are the correct ones:
-r-xr--r-- 1 bin bin 32768 Nov 14 2000 /usr/lbin/remshd
And with lsof i got the folowing output:
# ./lsof -iTCP:512,513,514
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
inetd 868 root 8u inet 0x28f3440 0t0 TCP *:login (LISTEN)
inetd 868 root 9u inet 0x28f3540 0t0 TCP *:shell (LISTEN)
inetd 868 root 10u inet 0x28f3640 0t0 TCP *:exec (LISTEN)
Which i think, seems to be correct.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2004 05:56 AM
11-17-2004 05:56 AM
Re: problem conecting to remshd from linux box
rsh hp-server date;rsh hp-server date
Wait for about 10 secs.
resh hp-server date
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2004 06:04 AM
11-17-2004 06:04 AM
Re: problem conecting to remshd from linux box
The output from the linux system is as follows:
bash-2.05a$ rsh hpserver date;rsh hpserver date
poll: protocol failure in circuit setup
poll: protocol failure in circuit setup
bash-2.05a$ rsh hpserver date
poll: protocol failure in circuit setup
And from the hpserver:
$ remsh hpserver date; remsh hpserver date
rcmd: recv: Connection reset by peer
rcmd: recv: Connection reset by peer
$ remsh hpserver date
rcmd: recv: Connection reset by peer
You think it may be a problem of a kind of timeout or something like that?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2004 06:10 AM
11-17-2004 06:10 AM
Re: problem conecting to remshd from linux box
Do you have tusc or equivalent?? (on linux)
tusc -vfp "remsh hp-server date"
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2004 06:11 AM
11-17-2004 06:11 AM
SolutionAt this time, I would run 'tusc' on 'inetd' (follow forks), run 'remsh' and see if I get any clues. Is 'logging' enabled with inetd?.
#inetd -l
#tail -f /var/adm/syslog/syslog.log
#remsh localhost -n 'll /etc/passwd'
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2004 03:22 PM
11-17-2004 03:22 PM
Re: problem conecting to remshd from linux box
Any lines starting with word 'shell' are suspect.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2004 11:27 PM
11-17-2004 11:27 PM
Re: problem conecting to remshd from linux box
I feel a little bit stupid now... but well. Thank you Sridhar and Ermin. The services where disabled in inetd.sec. I didn't read carefully the first time Sid suggested that. Sorry for the loss of time.
Thanks again
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2004 11:29 PM
11-17-2004 11:29 PM
Re: problem conecting to remshd from linux box
Thanks for your help
Victor