Linux:telnet-server安装

# yum install telnet telnet-serve
# vi /etc/xinetd.d/telnet

# 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
}
# service xinetd restart
Stopping xinetd:                                           [  OK  ]
Starting xinetd:                                           [  OK  ]
# netstat -ntlp | grep xinetd
tcp        0      0 0.0.0.0:23   0.0.0.0:*    LISTEN      18238/xinetd
# telnet 127.0.0.1
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
CentOS release 6.8 (Final)
Kernel 2.6.32-642.13.1.el6.x86_64 on an x86_64
login: root
Password: 

 

你可能感兴趣的:(Linux基础)