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

相关推荐
Deng8723473481 分钟前
代码语法检查工具
linux·服务器·windows
霍夫曼2 小时前
UTC时间与本地时间转换问题
java·linux·服务器·前端·javascript
月熊3 小时前
在root无法通过登录界面进去时,通过原本的普通用户qiujian如何把它修改为自己指定的用户名
linux·运维·服务器
漫漫求3 小时前
ubuntu22.04 安装报错:grub-install/dev/sda 解决方案
ubuntu
大江东去浪淘尽千古风流人物4 小时前
【DSP】向量化操作的误差来源分析及其经典解决方案
linux·运维·人工智能·算法·vr·dsp开发·mr
赖small强4 小时前
【Linux驱动开发】NOR Flash 技术原理与 Linux 系统应用全解析
linux·驱动开发·nor flash·芯片内执行
IT运维爱好者6 小时前
【Linux】LVM理论介绍、实战操作
linux·磁盘扩容·lvm
LEEE@FPGA6 小时前
ZYNQ MPSOC linux hello world
linux·运维·服务器
郝学胜-神的一滴6 小时前
Linux定时器编程:深入理解setitimer函数
linux·服务器·开发语言·c++·程序人生
冉佳驹6 小时前
Linux ——— 系统中的用户身份切换、文件权限管理、特殊权限和粘滞位设置
linux·chmod·chown·粘滞位·su 命令·chgrp·umask