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

相关推荐
普马萨特1 分钟前
GPS、WiFi、基站定位:为什么在 Agent 时代不仅不受影响,反而更重要
linux·运维·服务器
予枫的编程笔记26 分钟前
【Linux入门篇】Ubuntu和CentOS包管理不一样?apt与yum对比实操,看完再也不混淆
linux·人工智能·ubuntu·centos·linux包管理·linux新手教程·rpm离线安装
RisunJan31 分钟前
Linux命令-lpr(从命令行提交文件到打印机打印)
linux·运维·服务器
历程里程碑32 分钟前
Linux 库
java·linux·运维·服务器·数据结构·c++·算法
Sheep Shaun34 分钟前
如何让一个进程诞生、工作、终止并等待回收?——探索Linux进程控制与Shell的诞生
linux·服务器·数据结构·c++·算法·shell·进程控制
codingWhat36 分钟前
Linux 入门指南
linux
Y1rong1 小时前
linux之信号量
linux
wdfk_prog1 小时前
[Linux]学习笔记系列 -- [drivers][tty]sysrq
linux·笔记·学习
c++逐梦人1 小时前
Linux基础IO
linux·操作系统·io
blueSatchel1 小时前
U-Boot载入到DDR过程的代码分析
linux·开发语言·u-boot