TELNET
Red Hat Linux 9 includes
Red Hat Enterprise Linux 3 incudes
situation:
I was unable to use telnet to connect to a particular Linux server
Whether from another server on the network, or the server itself,
I got the following error messages:
from a Windows 2003 Server:
C:\>telnet bulldog
Connecting To bulldog...Could not open connection to the host,
on port 23: Connect failed
C:\>
from another Linux server:
# telnet bulldog
Trying 192.168.0.6...
telnet: Unable to connect to remote host: Connection refused
#
even from the server bulldog
itself:
# telnet bulldog
Trying 192.168.0.6...
telnet: connect to address 192.168.0.6: Connection refused
#
On bulldog, check
the file /etc/xinetd.d/telnet:
# cat /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 = yes
}
#
notice that the default is set to disable = yes
use vi or another editor to change yes to no,
then restart the xinetd service:
# service xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
#
#
Now we have the ability to telnet in to the server bulldog from anywhere.