ubuntu16.04配置rsh

Ubuntu16.04 配置rsh服务:

1:先安装以下软件:

sudo apt-get rsh-server

sudo apt-get rsh-client

sudo apt-get rsh-redone-server

sudo apt-get xinetd

2:在/etc/hosts 中添加访问的主机ip和主机名

192.168.0.66 cpci6200

3:在/etc/hosts.equiv中添加访问的主机ip

192.168.0.66

4:【/etc/securetty中添加rsh rlogin rexec】可选

5: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

}

6:重启xinetd

/etc/init.d/xinetd restart

相关推荐
lzx_0023 小时前
Linux 进程(二) 深入理解进程
linux
沫璃染墨3 小时前
从零入门计算机网络系列(十二):HTTP长连接与会话管理详解——从Connection到Cookie与Session
linux·服务器·c++·tcp/ip·ubuntu·http·交互
温暖小土3 小时前
在 CentOS 上安装 Redis Stack
linux·redis·centos
GeW5 小时前
国产化替代进入深水区之后Linux 与数据库为什么必须走向重建
linux
longzhizhui9267 小时前
Ubuntu 全版本 CVE-2026-98432 内核安全升级操作手册
ubuntu·网络安全·云计算·bash
女神下凡8 小时前
芯参谋(85):Linux_PPI_NAND_驱动开发指南
linux·运维·arm开发·驱动开发·单片机·嵌入式硬件·设计规范
12.=0.9 小时前
【持续更新】shell脚本 + Linux命令
linux·运维·服务器
Escalating_xu9 小时前
【Linux 网络编程】五种 I/O 模型与非阻塞 I/O:从“等数据”到正确处理 EAGAIN
java·linux·网络
无言听风雨丶10 小时前
Linux 容器本质探秘:Cgroup 与 Namespace 深度解析与实战
linux·运维·服务器·kubernetes
万联WANFLOW10 小时前
CVE-2026-98432 等漏洞自查:AI 查出的 Linux、Windows 漏洞,运维怎么确认受不受影响
linux·运维·windows·网络安全