CentOS6安裝配置rsh,centos6rsh

來源:互聯網
上載者:User

CentOS6安裝配置rsh,centos6rsh

基本資料:
節點一:
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 ~]# 

不輸入密碼登入節點一表示安裝成功

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.