ubuntu 安装部署rsh

简介:

Ubuntu启动rsh服务

1  apt-get install

rsh-server

rsh-client

rsh-redone-server

xinetd

chkconfig


2  /etc/hosts


10.60.36.78 node1 server

10.60.36.90 node2

10.60.36.83 node3


   /etc/hosts.equiv

node1

node2

node3

  /root/.rhosts

node1 root

node2 root

node3 root

   /etc/securetty

加入rsh rlogin rexec


3 ubuntu下原来没有一下这些文件,新建


  /etc/xinetd.d/rsh

# default: on
# descrīption: 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
{
        disable = no
        socket_type             = stream
        wait                    = no
        user                    = root
        log_on_success          += USERID
        log_on_failure          += USERID
        server                  = /usr/sbin/in.rshd
}


 /etc/xinetd.d/rlogin


# default: on
# descrīption: 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
{
        disable = no
        socket_type             = stream
        wait                    = no
        user                    = root
        log_on_success          += USERID
        log_on_failure          += USERID
        server                  = /usr/sbin/in.rlogind
}


/etc/xinetd.d/rexec


# default: off
# descrīption: Rexecd is the server for the rexec(3) routine.  The server \
#       provides remote execution facilities with authentication based \
#       on user names and passwords.
service exec
{
        disable = no
        socket_type             = stream
        wait                    = no
        user                    = root
        log_on_success          += USERID
        log_on_failure          += USERID
        server                  = /usr/sbin/in.rexecd
}

 

4 重启xinetd

/etc/init.d/xinetd restart

5,测试

测试 rsh 主机名 true,没有任何显示表示配置完成了!

root@it-mx01:~# rsync -e rsh -a 2-ip.txt  it-mx02:/root/wuxy/tmp 


      本文转自Tenderrain 51CTO博客,原文链接:http://blog.51cto.com/tenderrain/1716476,如需转载请自行联系原作者





相关文章
|
19天前
|
Ubuntu Linux Python
Linux(15)Ubuntu安装ninja构建工具
Linux(15)Ubuntu安装ninja构建工具
87 0
|
4天前
|
Ubuntu Python
Ubuntu 安装Python3.8
Ubuntu 安装Python3.8
21 0
|
1天前
|
Ubuntu Unix Linux
在Ubuntu安装RPM文件
Ubuntu使用`apt`和`alien`工具安装软件。`deb`是Ubuntu的标准包格式,但通过`alien`可转换及安装`RPM`包。首先确保启用`Universe`源,然后安装`alien`。转换RPM包为DEB包,运行`sudo alien package_name.rpm`,接着用`sudo apt install package_name.deb`安装。直接安装RPM包可使用`sudo alien -i package_name.rpm`,但这种方法不推荐,可能导致依赖性冲突和系统不稳定。
21 10
|
2天前
|
Ubuntu
ubuntu软件包安装
ubuntu软件包安装
10 1
|
3天前
|
分布式计算 Ubuntu Java
PySpark安装及WordCount实现(基于Ubuntu)
现在,你已经成功安装了PySpark并实现了WordCount示例。你可以根据实际需求修改脚本以处理不同的文本数据。
9 0
|
5天前
|
Ubuntu 应用服务中间件 nginx
ubuntu编译安装nginx及安装nginx_upstream_check_module模块
以上是编译安装Nginx和安装 `nginx_upstream_check_module`模块的基本步骤。根据你的需求和环境,你可能需要进一步配置Nginx以满足特定的要求。
18 3
|
7天前
|
资源调度 JavaScript Ubuntu
Yarn介绍及快速安装Debian/Ubuntu Linux
现在,你已经成功安装了Yarn,可以在你的JavaScript项目中使用它来管理依赖。
46 3
|
7天前
|
Ubuntu
Ubuntu20.04安装SNMP服务
至此,你已经成功在Ubuntu 20.04上安装了SNMP服务。你可以使用SNMP工具来监视和管理你的系统,或者将其集成到网络管理系统中。
22 3
|
11天前
|
Ubuntu 关系型数据库 MySQL
Ubuntu 20.04 + mysql8 安装以及配置大小写不敏感
Ubuntu 20.04 + mysql8 安装以及配置大小写不敏感
|
11天前
|
缓存 Ubuntu 数据库
ubuntu无法使用apt命令时怎么安装库
无论哪种方法,一旦成功安装了所需的库文件,你应该能够在Ubuntu系统上正常使用它们。如果问题仍然存在,可能需要进一步检查系统的包管理配置和依赖关系问题。
29 0