星空网 > 软件开发 > 操作系统

CentOS6安装配置rsh

基本信息:
节点一:
ip:192.168.8.166
主机名:hadrtest01
节点二:
ip:192.168.8.250
主机名:hadrtest02

1、两节点分别安装rsh,rsh-server包是否已经安装

yum -y install rsh rsh-server

2、修改/etc/xinetd.d/rlogin确保disable = no这一行

# default: on
# description: rlogind is the server for the rlogin(1) program. The server \
# provides a remote login facility with authentication based on \
# privileged port numbers from trusted hosts.
service login
{
socket_type = stream
wait = no
user = root
log_on_success += USERID
log_on_failure += USERID
server = /usr/sbin/in.rlogind
disable = no
}


节点二同样修改

3、修改/etc/xinetd.d/rsh确保disable = no这一行

[root@hadrtest01 ~]# cat /etc/xinetd.d/rsh
# default: on
# description: The rshd server is the server for the rcmd(3) routine and, \
# consequently, for the rsh(1) program. The server provides \
# remote execution facilities with authentication based on \
# privileged port numbers from trusted hosts.
service shell
{
socket_type = stream
wait = no
user = root
log_on_success += USERID
log_on_failure += USERID
server = /usr/sbin/in.rshd
disable = no
}


节点二同样修改

4、编辑/etc/securetty,添加rexec、rsh、rlogin三行

echo "rexec rsh rlogin" >> /etc/securetty

5、编辑/etc/hosts,添加两节点的ip,主机名

[root@hadrtest01 ~]# cat /etc/hosts127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4::1 localhost localhost.localdomain localhost6 localhost6.localdomain6192.168.8.166 hadrtest01192.168.8.250 hadrtest02

节点二同样修改

6、修改~/.rhosts ,添加节点一,节点二主机名,ip

[root@hadrtest01 ~]# cat ~/.rhosts hadrtest01 roothadrtest02 root[root@hadrtest02 ~]# cat ~/.rhostshadrtest01 roothadrtest02 root

7、两节点分别启动服务
重启:

service xinetd restart

开机启动:

chkconfig xinetd on

8、测试
节点一:

[root@hadrtest01 ~]# rsh hadrtest02Last login: Tue Feb 16 17:44:56 from hadrtest01[root@hadrtest02 ~]# 

不输入密码登录节点二表示安装成功

节点二:

[root@hadrtest02 ~]# rsh hadrtest01Last login: Tue Feb 16 17:39:35 from hadrtest02[root@hadrtest01 ~]# 

不输入密码登录节点一表示安装成功




原标题:CentOS6安装配置rsh

关键词:Centos

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

杜阿拉空运:https://www.goluckyvip.com/tag/30768.html
杜建银:https://www.goluckyvip.com/tag/30769.html
在拉美:https://www.goluckyvip.com/tag/3077.html
杜蕾斯:https://www.goluckyvip.com/tag/30770.html
杜明皓:https://www.goluckyvip.com/tag/30771.html
渡河之众:https://www.goluckyvip.com/tag/30772.html
重庆品胜科技与星苹台达成合作 助力部队现代化后勤建设 :https://www.kjdsnews.com/a/1836523.html
回乡创业,不知道干什么,能否推荐几个农村老家创业的好项目?:https://www.vstour.cn/a/365177.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流