Sunday, August 26, 2007

enable and disable of telnet service

Telnet - user interface to the TELNET protocol

The telnet command is used to communicate with another host using the TELNET protocol. If telnet is invoked without the host argument, it enters command mode, indicated by its prompt ( telnet>). In this mode, it accepts and executes the commands listed below. If it is invoked with arguments, it performs an open command with those arguments.


Here's how to disable telnet from Fedora inet services.

Verify that your telnet service is currently running like so:

# telnet localhost 23

If the above command prompts your for username or password, yout telnet service is currently active.

Alternative ways to check for telnet service are as follow

# ss -a | grep telnet
# netstat -l | grep telnet

How to stop telnet service in Fedora?

# cd /etc/xinetd.d

Edit krb5-telnet and modify the below line

disable = no

TO
disable = yes

and restart INET service like so

# service xinetd restart


Verify that telnet service is not running anymore.

# ss -a | grep telnet

Done.

0 comments:

Sign up for PayPal and start accepting credit card payments instantly.
ILoveTux - howtos and news | About | Contact | TOS | Policy