Ads

Searching...

Ads

Saturday, August 29, 2009

Linux RSH Server configuration

August 29, 2009
How to install and configure RSH Server on Linux

What is the RPM need to Installed

rsh-server-0.17-37.el5
rsh-0.17-37.el5
What is the RSH Server Config File:

#/etc/xinetd.d/rsh
#/etc/xinetd.d/rlogin
#/etc/xinetd.d/rexec
#/etc/securetty
#/root/.rhosts
#/etc/hosts
What is the Service need to be start:

#root@localhost#service xinetd restart
How To install RSH Server RPM

#root@localhost#mount 10.192.194.110:/work /mnt (mount it on Your Linux machine)
#root@localhost#cd /mnt/rhel5132/Server/
#root@localhost#rpm -ivh rsh-server-4.xxx.rpm
How to configure RSH Server on Linux

#root@localhost#vi /etc/xinetd.d/rsh
#service shell
{
socket_type = stream
wait = no
user = root
log_on_success += USERID
log_on_failure += USERID
server = /usr/sbin/in.rshd
disable = yes
}
Note:change disable=yes to no and save
#root@localhost#vi /etc/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 = yes
}
Note:change disable=yes to no and save
#root@localhost#vi /etc/xinetd.d/rexec
service exec
{
socket_type = stream
wait = no
user = root
log_on_success += USERID
log_on_failure += USERID
server = /usr/sbin/in.rexecd
disable = yes
}
Note: Change disable=yes to no
#root@localhostservice xinetd restart (restart Service)
Add the Entry in vi /etc/securetty

#root@localhost#vi /etc/securetty
rsh
rlogin
rexec
#save restart service
#service xinetd restart
Add the entry vi /etc/hosts

#root@localhost#vi /etc/hosts
hostname ipaddress [ex rshserver]
hostname ipaddress [ex rsh client]
#save File
#root@localhost#vi /root/.rhosts
ipaddress root (ex:server)
ipaddress root (ex:client)
#save
#service xinetd restart (Restart the Service)
#chkconfig xinetd on
Make Sure to Stop Firewall Service:

#root@localhost#/etc/init.d/iptables stop
#root@localhost#/etc/init.d/iptables stop
#root@localhost#chkconfig iptables off
#root@localhost#chckconfig ip6tables off

0 comments:

Post a Comment

Ads