linux服务器配置telnet


一、安装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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM