日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷解決方案
CentOS6安裝配置rsh

centos6安裝配置rsh

基本信息:
節(jié)點(diǎn)一:
ip:192.168.8.166
主機(jī)名:hadrtest01
節(jié)點(diǎn)二:
ip:192.168.8.250
主機(jī)名:hadrtest02

1、兩節(jié)點(diǎn)分別安裝rsh,rsh-server包是否已經(jīng)安裝

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
}

節(jié)點(diǎn)二同樣修改

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
}

節(jié)點(diǎn)二同樣修改

4、編輯/etc/securetty,添加rexec、rsh、rlogin三行

echo "

rexec

rsh

rlogin

" >> /etc/securetty

5、編輯/etc/hosts,添加兩節(jié)點(diǎn)的ip,主機(jī)名

[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

節(jié)點(diǎn)二同樣修改

6、修改~/.rhosts ,添加節(jié)點(diǎn)一,節(jié)點(diǎn)二主機(jī)名,ip

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

hadrtest01 root

hadrtest02 root

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

hadrtest01 root

hadrtest02 root

7、兩節(jié)點(diǎn)分別啟動(dòng)服務(wù)
重啟:

service xinetd restart

開機(jī)啟動(dòng):

chkconfig xinetd on

8、測(cè)試
節(jié)點(diǎn)一:

[root@hadrtest01 ~]# rsh hadrtest02

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

[root@hadrtest02 ~]#

不輸入密碼登錄節(jié)點(diǎn)二表示安裝成功

節(jié)點(diǎn)二:

[root@hadrtest02 ~]# rsh hadrtest01

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

[root@hadrtest01 ~]#

不輸入密碼登錄節(jié)點(diǎn)一表示安裝成功


網(wǎng)站標(biāo)題:CentOS6安裝配置rsh
文章地址:http://www.5511xx.com/article/coisgch.html