centOS rsh rcp 配置

1、安装
yum -y install rsh
yum -y install rsh-server
yum -y install xinetd

2、修改hosts,将双方ip和hostname对应

3、在双方根目录下创建.rhosts文件,内容为
hostname root

4、创建/etc/rsh 和/etc/rlogin文件,内容为
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
{
disable = no
socket_type = stream
wait = no
user = root
log_on_success += USERID
log_on_failure += USERID
server = /usr/sbin/in.rshd
}
rlogin:

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

5、在/etc/securetty中添加rexec、rsh、rlogin三行

6、重启xinetd
service xinetd restart

7、连接测试
rsh hostname

8、传送文件
rcp file hostname:/home/file1

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • NAME dnsmasq - A lightweight DHCP and caching DNS server....
    ximitc阅读 7,943评论 0 0
  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 135,390评论 19 139
  • 一、项目目标 搭建一个高可用web集群网站 二、项目规划 2.1 ip地址规划 2.2 拓扑图 2.3 相关说明 ...
    夏日之光阅读 9,563评论 0 1
  • 想赚大钱,就要有冒险精神;撑死胆大的,饿死胆小的。很多人从小到大被灌输着这种思想。这是一个有毒的思想,是错误的思想...
    何二的李斯阅读 2,444评论 0 0
  • 1 深夜惊醒,做了一个噩梦。 【梦中我接收到体内病症传...
    西西诶阅读 2,773评论 0 1