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

相关推荐
Lolo_fi4 分钟前
Linux PCI/PCIe子系统
linux
虚拟世界AI15 分钟前
Linux运维实战:从部署到高可用全指南
linux·运维
闫记康16 分钟前
scp工具
linux·运维·服务器·学习·ssh·github
虾..19 分钟前
Linux 套接字编程---基于UDP协议实现简易的聊天室
linux·运维·udp
我爱学习好爱好爱33 分钟前
ELK日志分析平台(三):Logstash 7.17.10 独立节点部署与基础测试(基于Rocky Linux 9.6)
linux·python·elk
默|笙35 分钟前
【Linux】库制作与原理(2)_ELF格式
linux·运维·服务器
青桔柠薯片37 分钟前
Linux I/O多路复用:深入浅出poll与epoll
linux·运维·服务器·算法
雾岛听蓝37 分钟前
Linux文件系统:从硬件到软硬链接
linux·经验分享·笔记
HalvmånEver1 小时前
Linux:初始网络(上)
linux·网络·学习·通信
REDcker1 小时前
Linux C++ 内存泄漏排查分析手册
java·linux·c++