jim.thornton
Verified User
- Joined
- Jan 1, 2008
- Messages
- 334
Is the default for telnet to be enabled or disabled? How can I disable it?
Is the default for telnet to be enabled or disabled? How can I disable it?
With no details of your OS, etc, hard to say. Try this:
- SSH into server and login as root
- # nano -w /etc/xinetd.d/telnet
- change disable = no to disable = yes
- Save and Exit
- # /etc/init.d/xinetd restart
I tried to run the command you suggested but there is no file right now called /etc/xinetd.d/telnet
Does that mean that telnet isn't running, because there is no file there?
Yes, CentOS disables telnet by default, but if you want to feel extra warm and fuzzy, open /etc/xinetd.d/krb5-telnet and look for the line disable = yes to make certain that the kerberized telnet server is disabled (since it also accepts normal telnet sessions).
you can be sure about that by checking , netstat -a | grep 23
and if there is line like :
*:23 , telnet will be running
Nothing shows up with that, and I checked my APF config file and port 23 isn't open, so I think I'm good!
telnet localhost