How to configure rsh in linux centos or redhat ..............????
This post shows you how to configure rsh in cluster environment
[root@lenovo ~]# yum install rsh rsh-server -y
Edit the configuration file for enabling rsh and rlogin
[root@lenovo ~]#vim /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 = no
}
you have to change only option "
disable = no" .
[root@lenovo ~]# service xinetd restart
.rhosts file must be present in users home directory. This file allows a users to login without a password, Now i am going to create this file under root users home directory.
[root@lenovo ~]# vim ~/.rhosts
[root@lenovo ~]# cat ~/.rhosts
localhost
lenovo.example.com
client1.example.com
client2.example.com
[root@lenovo ~]# chmod 0600 ~/.rhosts
[root@lenovo ~]# vim /etc/securetty
Edit file /etc/securetty & append these entry
rsh
rexec
rlogin
No comments:
Post a Comment