• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

CentOS / RHEL 6 : How to disable telnet service

by admin

For security purposes, administrators may wish to disable telnet (incoming connections) on CentOS / RHEL 6. Follow the steps below to disable telnet permanently on your system.

1. For disabling the telnet server, edit /etc/xinetd.d/telnet and change the field disable to yes.

# vi /etc/xinetd.d/telnet
service telnet
{
    flags       = REUSE
    socket_type = stream        
    wait        = no
    user        = root
    server      = /usr/sbin/in.telnetd
    log_on_failure  += USERID
    disable     = yes 
}

2. Now erestart the xinetd service with the below command.

# service xinetd restart

Filed Under: Linux

Some more articles you might also be interested in …

  1. “go fmt” Command Examples
  2. How to find docker storage device and its size (device mapper storage driver)
  3. sreport: command not found
  4. “git svn” Command Examples
  5. “git remote” Command Examples
  6. protonvpn-cli connect Command Examples
  7. nethogs: command not found
  8. “aws workmail” Command Examples
  9. touch: command not found
  10. gow Command Examples

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright