阿里云-云小站(无限量代金券发放中)
【腾讯云】云服务器、云数据库、COS、CDN、短信等热卖云产品特惠抢购

CentOS6安装配置rsh

194次阅读
没有评论

共计 1806 个字符,预计需要花费 5 分钟才能阅读完成。

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/hosts

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4

::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

192.168.8.166 hadrtest01

192.168.8.250 hadrtest02

节点二同样修改

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

[root@hadrtest01 ~]# cat ~/.rhosts

hadrtest01 root

hadrtest02 root

[root@hadrtest02 ~]# cat ~/.rhosts

hadrtest01 root

hadrtest02 root

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

service xinetd restart

开机启动:

chkconfig xinetd on

8、测试
节点一:

[root@hadrtest01 ~]# rsh hadrtest02

Last login: Tue Feb 16 17:44:56 from hadrtest01

[root@hadrtest02 ~]#

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

节点二:

[root@hadrtest02 ~]# rsh hadrtest01

Last login: Tue Feb 16 17:39:35 from hadrtest02

[root@hadrtest01 ~]#

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

更多关于的 CentOS 信息见CentOS 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=14

本文永久更新链接地址:http://www.linuxidc.com/Linux/2016-02/128454.htm

正文完
星哥说事-微信公众号
post-qrcode
 
星锅
版权声明:本站原创文章,由 星锅 2022-01-21发表,共计1806字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
【腾讯云】推广者专属福利,新客户无门槛领取总价值高达2860元代金券,每种代金券限量500张,先到先得。
阿里云-最新活动爆款每日限量供应
评论(没有评论)
验证码
【腾讯云】云服务器、云数据库、COS、CDN、短信等云产品特惠热卖中