Step: 1. debian :~ # Apt-getinstalltelnetddebian :~ # Apt-getinstalltelnetd-ssldebian :~ # Apt-getinstallxinetd (installation package xinetd ......) 2. create a file/etc/xinetd. d/telnet. the method and content are as follows, and save. debian :~
Steps:
1.Debian :~ # Apt-get install telnetd
Debian :~ # Apt-get installtelnetd-ssl
Debian :~ # Apt-get installxinetd
(Installation package xinetd ......)
2. create a file/etc/xinetd. d/telnet. the method and content are as follows and save the file.
Debian :~ # Nano-w/etc/xinetd. d/telnet
GNU nano1.2.4 File:/etc/xinetd. d/telnet
# Default: on
# Description: The telnet server serves telnet sessions; it uses \
# Unencrypted username/password pairs for authentication.
Service telnet
{
Disable = no
Flags = REUSE
Socket_type = Stream
Wait = No
User = Root
Server =/Usr/sbin/in. telnetd
Server_args =-H
Log_on_failure+ = USERID
}
3. debian :~ # Apt-get install telnet
(Installation package telnet ......)
4. try to connect:
Debian :~ # Telnet 10.11.12.13 (local IP address)
Result:
Trying 10.11.12.13...
Connected to 10.11.12.13.
Escape character is '^]'.
Debian login: root
Loginincorrect # Root users are not allowed to log on by default. for security reasons, refer to the telnet protocol.
Debian login: user # User-created
Password:
Last login: Mon Sep 27 20:51:33 2004 from localhost. localdomainon pts/3
Linux debian 2.6.8-1-686 #1 Tue Sep 14 00:22:58 EDT 2004 i686GNU/Linux
The programs encoded with the Debian GNU/Linux system are freesoftware;
The exact distribution terms for each program are described inthe
Individual files in/usr/share/doc/*/copyright.
Debian GNU/Linux comes with absolutely no warranty, to theextent
Permitted by applicable law.
User @ debian :~ $ # After successful login
To enable root login, follow these steps:
Debian :~ # Vim/etc/pam. d/login
Comment out the line auth requisite pam_securetty.so and complete the configuration.
Command:
Debian :~ #/Etc/init. d/xinetd (command)
Force-reload (force refresh) | reload | restart | start | stop)
Others can be viewed by themselves