RSH connect to address 192.168.1.xxx port 544: Connection refused Permission denied
Linux - NetworkingThis 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.
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.
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.
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
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...
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.