Telnet
*******************************************************************************
Instalar e Configurar o telnet
Criado por: Alessandro C. M. Kuramoto
Data: 19/09/2008
Modificado em: 05/02/2010-19:00
v.20100205-1900
Palavras-chaves: telnet, telnetd
*******************************************************************************
###############################################################################
# Instalando:
###############################################################################
### Instalar o xinetd
apt-get install xinetd
### Instalando o cliente de Telnet:
apt-get install telnet
### Instalando o servidor de Telnet:
apt-get install telnetd
|##########^ Instalando ######################################################|
###############################################################################
# Configurando:
###############################################################################
#### Caso esteja usando o Xinetd teremos que fazer as configurações do
#### superdaemon
## Se não existir criar o arquivo:
_______________________________________________________________________________
Arquivo: /etc/xinetd.d/telnetd (Permissões: -rw-r–r– 1 root root)
——————————————————————–
service telnet
{
flags = REUSE
socket_type = stream
protocol = tcp
wait = no
user = telnetd
server = /usr/sbin/in.telnetd
log_on_failure += USERID
disable = no
}
|———-^ Arquivo: /etc/xinetd.d/telnetd ———————————-|
# service — Defines the service name, usually o match a service listed in the /etc/services
# file.
#
# flags — Sets any of a number of attributes for the connection. REUSE instructs xinetd to
# reuse the socket for a Telnet connection.
#
# wait — Defines whether the service is single-threaded (yes) or multi-threaded (no).
#
# log_on_failure — Defines logging parameters for log_on_failure in addition to those already
# defined in xinetd.conf.
#
#
## Para reiniciar o serviço Xinetd:
/etc/init.d/xinetd restart
|##########^ Configurando ####################################################|
###############################################################################
# Testando:
###############################################################################
## No próprio servidor executar:
telnet localhost
|##########^ Testando ########################################################|
###############################################################################
# Referências:
###############################################################################
>Referências
## 15.4. xinetd Configuration Files:
http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/ref-guide/s1-tcpwrappers-xinetd-config.html
|##########^ Referências #####################################################|