Disable tenet (port 23) on CentOS 7
by cdunavent from LinuxQuestions.org on (#6EH0H)
I am a new Linux admin setting up a brand new Linux virtual machine (VM). When I do a uname -r, I see it is running 3.10.0-1160.83.1.el7.x86_64, which I assume is CentOS.
About a week after the machine was turned up, I got an email from security stating they had performed a port scan on my machine and detected that telnet (port) 23 was turned on. They asked me to turn it off.
I immediately started Googling and found many references about editing /etc/xinetd.d/telnet. Most state that I open # vi /etc/xinetd.d/telnet and change diable=no to disable=yes.
Unfortunately, there is no such file /etc/xinetd.d/telnet on my machine to edit.
So, I am looking for an alternative way to permanently disable telnet port 23.
About a week after the machine was turned up, I got an email from security stating they had performed a port scan on my machine and detected that telnet (port) 23 was turned on. They asked me to turn it off.
I immediately started Googling and found many references about editing /etc/xinetd.d/telnet. Most state that I open # vi /etc/xinetd.d/telnet and change diable=no to disable=yes.
Unfortunately, there is no such file /etc/xinetd.d/telnet on my machine to edit.
So, I am looking for an alternative way to permanently disable telnet port 23.