El servidor Telnet no se inicia


8

Estoy instalando Ubuntu Server 13.10 y no puedo hacer que Telnet funcione en el servidor. Instalé xinet.d y telnetd a través de apt-get y reinicié xinetd, pero no se inicia nada cuando hago una netstat -l. En Google, el problema que veo menciona al agregar telnet stream tcp wait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetdlínea /etc/inetd.conf. Yo no tengo inetd.conf. Veo que inetd ha sido depracado y puse la línea xinetd.confy reinicié el servicio xinetd pero aún no escucho telnet. ¿Alguien puede aconsejarme sobre cuáles son las configuraciones adecuadas para el servidor telnet y en qué archivos deben estar? Aquí está el contenido de mi xinetd.confarchivo:

# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/

defaults
{

# Please note that you need a log_type line to be able to use log_on_success
# and log_on_failure. The default is the following :
# log_type = SYSLOG daemon info

}

includedir /etc/xinetd.d

#:STANDARD: These are standard services.
telnet      stream  tcp nowait  telnetd /usr/sbin/tcpd  /usr/sbin/in.telnetd

Gracias


2
Es 2014, ¿por qué quieres instalar telnet?
Elliott Frisch

¿Por qué estás usando telnet? Es un protocolo obsoleto e inseguro. Use en su sshlugar: es seguro, más rápido (usa compresión) y tiene otras características ingeniosas, como la capacidad de reenviar puertos.
psusi

Solo lo estoy usando internamente para una clase de computación y quiero besarme.
AlanK

Podrían ser muchas cosas ... probablemente nadie lo haya probado en los últimos ... bueno ... ¿diez años? ;-)
Rmano

Parece que piensas eso /etc/inetd.confy xinetd.confusas el mismo formato. Ha leído man xinetd, man -k xinetd, man inetd, man -k inetd, man telnetd? ¿Existe /etc/default/telnetd? Has hecho grep telnet /var/log/*?
waltinator

Respuestas:


2

Después de instalar telnetd y xinetd con comando

sudo apt-get install xinetd telnetd

Crear archivo telnety ponerlo/etc/xinetd.d

sudo nano /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
log_on_failure += USERID
}

Reiniciar el servicio xinetd

sudo service xinetd restart

En xinetd.conftienes includedir /etc/xinetd.dy no necesitas línea

telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetd

Bórralo.

En el archivo telnet puede agregar más opciones como:

only_from = 192.168.120.0/24 #Only users in 192.168.120.0 can access to
only_from = .bob.com #allow access from bob.com
no_access = 192.168.120.{101,105} #not allow access from the two IP.

Gracias, esto se rompió en 14.10 / Trusty también. Crear el archivo y reiniciar el servicio funciona.
Neil McGill el
Al usar nuestro sitio, usted reconoce que ha leído y comprende nuestra Política de Cookies y Política de Privacidad.
Licensed under cc by-sa 3.0 with attribution required.