Pages

Wednesday, August 3, 2011

rsh setup on RHEL

yum install rsh-server
modify /etc/xinetd.d/rsh file to set "disable" to "no"
add "rsh" to /etc/securetty file
add trusted hosts to ~/.rhosts file
add "-A INPUT -m state --state NEW -m tcp -p tcp --dport shell -j ACCEPT" to /etc/sysconfig/iptables
in /etc/pam.d/rsh
change "auth       required   pam_rhosts.so" to "auth       sufficient   pam_rhosts.so"
service xinetd restart
server iptables restart

No comments:

Post a Comment