Steps
1) Check telnet server is installed
rpm -qa | grep telnet
If not, install:
yum -y install the Telnet-Server
rpm -qa | grep telnet
If not, the installation:
yum the install telnet-Server -Y
2) open telnet port, uncomment telnet 23 / tcp line
vi / etc / services
3) Set telnet service status
we /etc/xinetd.d/krb5-telnet
or
we /etc/xinetd.d/telnet
Disable = yes to disable = no change
service telnet
{
disable = yes
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
}
4) configure permissions
vi /etc/pam.d/login files, comments configuration auth required pam_securetty.so (can not ignore)
6) opened telent console
vi / etc / securetty
End of file append
pts/1
pts/2
pts/3
pts/4
pts/5
7) open telnet boot:
chkconfig telnet ON
chkconfig telnet on
8) Restart Service
service xinetd restart
9) Testing
telnet 127.0.0.1 normal login that is successful
----------------
Disclaimer: This article is CSDN blogger "yygg329405 'original article, follow the CC 4.0 BY-SA copyright agreement, reprint Please include links to the original source and this statement.
Original link: https: //blog.csdn.net/yygg329405/article/details/80387759