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

相关推荐
H_oRIZoN_10 分钟前
Linux入门DAY42【51 单片机】DS18B20 数字温度传感器完整解析(单总线原理 + 时序 + 读取流程)
linux·单片机·linux应用编程
j7~13 分钟前
【Linux网络加餐】(篇六)网络版计算器(上):模板方法模式、序列化与 JSON
linux·c++·json·序列化·反序列化·网络版计算机
流浪00138 分钟前
Linux系统篇34——信号(六):信号处理期间又来了怎么办?——sigaction、sa_mask、可重入函数与 volatile
linux·运维·面试·操作系统·信号处理·信号
学烹饪的小胡桃1 小时前
资产设备管理系统 WGFIX 怎么设置https访问
linux·运维·服务器·网络·安全
邪修king1 小时前
Re:Linux系统篇(二十六):文件系统(二):Ext 文件系统底层详解:从 inode、块组到软硬链接,结合 Windows 讲透文件管理本质
android·java·linux
高亦真2 小时前
今天是学习嵌入式的第38天
linux·学习·算法
DYWorker0012 小时前
Linux驱动子系统:中断子系统 —— Consumer和Provider(005)
linux·驱动开发
草莓熊Lotso2 小时前
【Redis 进阶】主从复制深度解析:从配置落地到 PSYNC 同步原理
linux·开发语言·网络·数据库·redis·缓存·php
ShineWinsu2 小时前
对于Git:远程操作的超详细保姆级解析
linux·git·gitee·github·远程仓库·分布式版本控制系统·远程操作
小张成长计划..3 小时前
【Linux】21:进程间通信
linux