Моя система Ubuntu 11
До этого я набрал "telnet localhost 23" или "telnet localhost 23". Я сделал эту работу ниже:
$sudo apt-get install xinetd
$vim /etc/xinetd.conf
defaults{
instances = 60
log_type = SYSLOG authpriv
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}
includedir /etc/xinetd.d
$vim /etc/xinetd.d/telnet
service telnet
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID}
$sudo /etc/init.d/xinetd restart
тогда я печатаю
telnet localhost
~$ telnet localhost
Trying ::1...
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused