Linux notes:telnet server



RedHat AS 3.0 telnet server

Symptom:

login: joe
Password for joe:
login: Cannot resolve network address for KDC in requested realm while getting initial credentials

Solution:

By default the RH AS 3.0 does not install the telnet-server package.
When you telnet to it, you are connecting to the kerberized rlogin server.
If you don't want to configure a kerberos domain and just want to install
the plain telnet server, this is the solution.
Download a copy of the file telnet-server-0.17-26.rpm and install.

#rpm -ivh telnet-server-0.17-26.rpm

If the server is registered with the RedHat network, just run the following command.

#up2date telnet-server

Edit the following files /etc/xinetd.d/telnet and /etc/xinetd.d/eklogin

/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
}
Take note disable should be set as no.

/etc/xinetd.d/eklogin
# default: off
# description: The encrypting kerberized rlogin server accepts rlogin sessions \
#              authenticated and encrypted with Kerberos 5.
service eklogin
{
        flags           = REUSE
        socket_type     = stream
        wait            = no
        user            = root
        server          = /usr/kerberos/sbin/klogind
        server_args     = -e -5
        disable         = yes
}
Take note disable should be set as yes.
Then restart the xinetd daemon.

#/etc/init.d/xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]