zxw-xxcsl

一、安装telnet-server

查询是否安装telnet-server

rpm -qa |grep telnet-server

 

如果未安装,进行telnet-server安装

 

yum install telnet-server

 

二、安装xinetd

查询是否安装xinetd

rpm -qa | grep xinetd

如果没有进行安装,使用yum进行安装

 yum install xinetd

 

三、配置可以telent登录

修改文件: yum install xinetd,注释掉disable或者改为no

# default: on
# description: The telnet server serves telnet sessions; it uses \
#       unencrypted username/password pairs for authentication.
service telnet
{
        flags           = REUSE
        socket_type     = stream
        wait            = no
        user            = root
        server          = /usr/sbin/in.telnetd
        log_on_failure  += USERID
        disable         = no

}

修改/etc/securetty文件,新增可以访问终端数,增加pts数量

console
vc/1
vc/2
vc/3
vc/4
vc/5
vc/6
vc/7
vc/8
vc/9
vc/10
vc/11
tty1
tty2
tty3
tty4
tty5
tty6
tty7
tty8
tty9
tty10
tty11
pts/0
pts/1
pts/2
pts/3
pts/4
pts/5
pts/6
pts/7
pts/8
pts/9
pts/10

修改端口(根据实际情况修改):

修改文件/etc/services将文件中:

telnet 8902/tcp

telnet 8902/udp

 

四、重启xinetd

 service xinetd restart

 

分类:

技术点:

相关文章:

  • 2022-02-07
  • 2021-06-21
  • 2021-11-29
  • 2021-12-09
  • 2022-12-23
  • 2021-09-17
  • 2021-07-13
  • 2022-12-23
猜你喜欢
  • 2022-02-07
  • 2021-12-09
  • 2021-10-13
  • 2021-08-05
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
相关资源
相似解决方案