linux服务器配置telnet

1、安装telnet-server

查询是否安装telnet-serversession

rpm -qa |grep telnet-serversocket

 

若是未安装,进行telnet-server安装tcp

 

yum install telnet-server

 

2、安装xinetdspa

查询是否安装xinetdrest

rpm -qa | grep xinetd

若是没有进行安装,使用yum进行安装code

yum install xinetd

 

3、配置能够telent登陆server

修改文件: yum install xinetd,注释掉disable或者改成noblog

# 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数量ip

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

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

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

telnet 8902/tcp

telnet 8902/udp

 

4、重启xinetd

service xinetd restart
相关文章
相关标签/搜索