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