title: Cent OS 7.5开启telnet登录 #标题tags: telnet #标签
date: 2020-06-20
categories: linux大杂烩 # 分类
用于记录下Cent OS 7.5开启telnet登录。
yum -y install telnet* xinetdcat > /etc/xinetd.d/telnet << EOF# default: yes# description: The telnet server servestelnet sessions; it uses \# unencrypted username/password pairs for authentication.service telnet{flags = REUSEsocket_type = streamwait = nouser = rootserver =/usr/sbin/in.telnetdlog_on_failure += USERIDdisable = no}EOFsystemctl restart xinetdps -ef | grep xinetdss -lnput | grep -w 23tcp LISTEN 0 64 :::23 :::* users:(("xinetd",pid=40820,fd=5))# 移除securetty文件以便可以root远程登录(可选配置)# 如果不移除此文件,也可以先以普通用户登录,登录后再切换至rootmv /etc/securetty{,.bak}$ telnet 192.168.20.2 # 客户端使用telnet进行登录测试
登录阶段如下:

