Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-06-2009, 12:51 PM
|
#1
|
|
Member
Registered: Jan 2008
Location: Oklahoma
Distribution: Slackware, QNX, Centos 5.2, Dream Linux, BackTrack, Fedora
Posts: 53
Rep:
|
RSH connect to address 192.168.1.xxx port 544: Connection refused Permission denied
I am installing some software that uses a MPI to pass parts of programs to cluster computers. This requires RSH to run the commands on the compute nodes.
I am running CENTOS 5
uname -a
Linux 2.6.18-92.el5 #1 SMP Tue Jun 10 18:51:06 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
I have setup IP MASQ so the head node routs all the traffic.
iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
I know that this is working.
cat securetty
tty11
rsh
rlogin
rexec
xinetd.d/rsh
disable = no
socket_type = stream
wait = no
user = root
log_on_success += USERID
log_on_failure += USERID
server = /usr/sbin/in.rshd
}
xinetd.d/rlogin
service login
{
socket_type = stream
wait = no
user = root
log_on_success += USERID
log_on_failure += USERID
server = /usr/sbin/in.rlogind
disable = no
xinetd/rexec
socket_type = stream
wait = no
user = root
log_on_success += USERID
log_on_failure += USERID
server = /usr/sbin/in.rexecd
disable = no
chkconfig --list |grep rsh
rsh: on
I know that this is probably something that I am doing wrong any help would be apreciated.
Thank you
Mike
|
|
|
|
04-07-2009, 06:19 AM
|
#2
|
|
Senior Member
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,592
Rep: 
|
Your port probably is not open for incoming connections.
|
|
|
|
04-07-2009, 09:52 AM
|
#3
|
|
Member
Registered: Jan 2008
Location: Oklahoma
Distribution: Slackware, QNX, Centos 5.2, Dream Linux, BackTrack, Fedora
Posts: 53
Original Poster
Rep:
|
Thank you for the reply
I have confirmed that the ports are open and that I can contact the port via telnet.
What about the hosts.equiv? should I be putting machines and users in this file?
Last edited by chackercon; 04-07-2009 at 10:44 AM.
|
|
|
|
04-09-2009, 04:24 PM
|
#4
|
|
Member
Registered: Jan 2008
Location: Oklahoma
Distribution: Slackware, QNX, Centos 5.2, Dream Linux, BackTrack, Fedora
Posts: 53
Original Poster
Rep:
|
I got this to work. It has taken a few days for me to think about posting this so sorry for the delay. The issue was with authentication, if you go into the /etc/pam.d/rsh file and move rlogin and rsh to the top and make it look like this it will work just fine.
# For root login to succeed here with pam_securetty, "rsh" must be
# listed in /etc/securetty.
auth required pam_nologin.so
auth required pam_securetty.so
auth required pam_env.so
auth required pam_rhosts_auth.so
account include system-auth
session optional pam_keyinit.so force revoke
session include system-auth
Thank you for the input.
Mike
|
|
|
|
04-10-2009, 12:28 PM
|
#5
|
|
LQ Newbie
Registered: Apr 2009
Posts: 5
Rep:
|
Quote:
Originally Posted by chackercon
I got this to work. It has taken a few days for me to think about posting this so sorry for the delay. The issue was with authentication, if you go into the /etc/pam.d/rsh file and move rlogin and rsh to the top and make it look like this it will work just fine.
# For root login to succeed here with pam_securetty, "rsh" must be
# listed in /etc/securetty.
auth required pam_nologin.so
auth required pam_securetty.so
auth required pam_env.so
auth required pam_rhosts_auth.so
account include system-auth
session optional pam_keyinit.so force revoke
session include system-auth
Thank you for the input.
Mike
|
Hi,
Using your post. I was able to enable rlogin. However, rsh is still not working. Any pointers will be appreciated...
|
|
|
|
04-10-2009, 09:10 PM
|
#6
|
|
Member
Registered: Jan 2008
Location: Oklahoma
Distribution: Slackware, QNX, Centos 5.2, Dream Linux, BackTrack, Fedora
Posts: 53
Original Poster
Rep:
|
Did you get my email? Make sure that you have the hosts.equiv and the .rhosts file created the contents of these file need to be +host +user. Other options are available if you have any more questions please let me know.
Thank you
Mike
|
|
|
|
04-10-2009, 11:57 PM
|
#7
|
|
LQ Newbie
Registered: Apr 2009
Posts: 5
Rep:
|
Can you please post your /etc/pam.d/rsh
May be my /etc/pam.d/rsh file is messed up. Is it different from /etc/pam.d/rlogin file?
Can you please post your /etc/pam.d/rsh ?
|
|
|
|
04-11-2009, 12:02 AM
|
#8
|
|
LQ Newbie
Registered: Apr 2009
Posts: 5
Rep:
|
Quote:
Originally Posted by chackercon
Did you get my email? Make sure that you have the hosts.equiv and the .rhosts file created the contents of these file need to be +host +user. Other options are available if you have any more questions please let me know.
Thank you
Mike
|
Got it working. Thank you for your help and tips. I am thanking you officially as well.
|
|
|
|
04-23-2009, 02:06 AM
|
#9
|
|
LQ Newbie
Registered: Apr 2009
Posts: 5
Rep:
|
>Thank you did you get VNC server running?
Yes, I finally got vino (vncserver) working. As root:
yum install vino
sudo reboot
Then enable vncserver service from:
System ---> Administration ---> Services ---> vncserver
"Enable"
After it is enabled, start the the service.
System ---> Administration ---> Services ---> vncserver
"Start"
It may say "refreshing service" but eventually gets done.
Reboot, it should have started automatically.
As a normal user, configure vncserver from:
System ---> Preferences ---> Internet and Network ---> Remote Desktop
You select the options. You can also, switch to the "Advanced" tab and change the port for the service.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:40 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|