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

相关推荐
码农小韩4 分钟前
Linux驱动理论(二)——Linux字符设备驱动
linux·嵌入式软件开发·linux操作系统·linux应用开发·linux驱动理论
well061211 分钟前
Linux粘滞位与Makefile机制深度解析
linux·运维·服务器
再写一行代码就下班19 分钟前
linux sh脚本在windows修改导致无法使用解决方式
java·linux·centos
额额额对了33 分钟前
SPI通信
linux·c语言·汇编·单片机·嵌入式硬件·arm
子木HAPPY阳VIP1 小时前
Ubuntu 关闭防火墙操作步骤
linux·运维·ubuntu
王振超wzc1 小时前
嵌入式开发环境搭建--WM软件安装,Ubuntu操作系统安装
linux·运维·ubuntu
GeW3 小时前
制造强国底座:Linux与数据库驱动的新型工业基础设施
linux
xiaoye-duck3 小时前
《Linux 网络编程》深入理解 IO 多路复用:select 函数详解与 Echo 服务实战
linux·网络
Tairitsu_H3 小时前
[Linux系统] 命令行参数 | 环境变量 | 程序地址空间
linux·环境变量·命令行参数·程序地址空间
雯宝3 小时前
devices_init / buses_init / classes_init / firmware_init / hypervisor_init 函数
linux