LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-26-2001, 11:54 AM   #1
Andrea
LQ Newbie
 
Registered: Jul 2001
Location: Texas
Distribution: Mandrake 10.0
Posts: 6

Rep: Reputation: 0
rsh error: protocol failure in circuit setup


I'm trying to get rsh to work on my Mandrake 8.0 linux box. From that box (known as darius) if I rsh to another box with no args, it works fine. For instance:

andrea@darius:~> rsh amanda

This works and logs me into amanda. But if I rsh a specific command to amanda, I get an error. For instance:

andrea@darius:~> rsh amanda date
poll: protocol failure in circuit setup

Any ideas?
 
Old 07-26-2001, 02:39 PM   #2
Andrea
LQ Newbie
 
Registered: Jul 2001
Location: Texas
Distribution: Mandrake 10.0
Posts: 6

Original Poster
Rep: Reputation: 0
It's a firewall problem. Turning bastille off fixes the problem. I added ports 1021 - 1023 to the internal services in the bastille config, and now it works (well one rsh command at a time works) with bastille on. But I think I'm just lucking out that rsh is picking a port from 1021 to 1023. If I do 2 rsh commands at roughly the same time, one of them will come back with the error. Where can I find all the ports that rsh would use?
 
Old 05-21-2009, 04:59 PM   #3
spoofeed
LQ Newbie
 
Registered: May 2009
Posts: 1

Rep: Reputation: 0
RSH and port numbers

Hi Andrea,

Well I have / see the same symptom.

I know for sure there is no firewall or SELinux involved. One is stopped and the other is disabled.
I believe RSH communicated anywhere between 0 and 1023 port numbers..
What else might be there problem here and if I were to check on what port it is communicating or not communicating how do I go about checking it?

Background: The RSH server as well as client is a Linux Redhat box.
I have tcpdumped and there are packets traveling across, but could not debug on it - as to what port the request is being sent on.

I would appreciated any suggestions..
 
Old 09-16-2009, 02:31 PM   #4
nlainus
LQ Newbie
 
Registered: Feb 2009
Location: Minneapolis
Distribution: RHEL 4 & 5
Posts: 12

Rep: Reputation: 0
Same problem fixed

Hello, I had that same problem in rhel 5.2.

Here is what I did to resolve:
un-install the rsh-server rpm
install the rsh-server rpm
reboot
edit the /etc/xinetd.d/rexec (change disabled = yes to no)
edit the /etc/xinetd.d/rlogin (change disabled = yes to no)
edit the /etc/xinetd.d/rsh (change disabled = yes to no)

edit the /etc/pam.d/rsh (auth required pam_rhosts_auth.so promiscuous)

edit /etc/securetty (add rsh rlogin and rexec)

update your ~/.rhosts file with the resolved names of the servers you want to access.

service xinetd restart

done!!!
 
Old 09-16-2009, 11:05 PM   #5
Smartpatrol
Member
 
Registered: Sep 2009
Posts: 196

Rep: Reputation: 38
...

Last edited by Smartpatrol; 03-11-2010 at 09:27 PM.
 
Old 09-17-2009, 01:15 PM   #6
nlainus
LQ Newbie
 
Registered: Feb 2009
Location: Minneapolis
Distribution: RHEL 4 & 5
Posts: 12

Rep: Reputation: 0
Actually that's not true. I work with clusters and rsh is the connection of choice. It's faster and when dealing with clustering speed is everything. Most MPI applications use RSH by default, yes you can set them to use ssh but your wall time suffers a bit. Also a lot of test applications like "STAR" from Symantec use rsh and have no ssh option.

For administrative purposes I can see rsh not being ideal. I mostly work in a non-production environment so, rsh it is.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
poll: protocl failure in circuit setup grrrr mri Linux - Networking 0 09-18-2004 07:53 PM
rsh--- poll:protocol failure in circuit setup" error haoscar Linux - Networking 9 07-25-2004 05:34 PM
rsh : poll: protocol failure in circuit setup haoscar Linux - Software 0 07-20-2004 08:49 PM
Error In Rsh Connection, poll:protocol failure in circuit set xhx321 Red Hat 5 04-20-2004 12:06 AM
Error In Rsh Connection, poll:protocol failure in circuit set xhx321 Linux - Networking 1 04-18-2004 06:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration